summaryrefslogtreecommitdiffstats
path: root/languages/java/tdevdeepcopy.h
diff options
context:
space:
mode:
Diffstat (limited to 'languages/java/tdevdeepcopy.h')
-rw-r--r--languages/java/tdevdeepcopy.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/languages/java/tdevdeepcopy.h b/languages/java/tdevdeepcopy.h
new file mode 100644
index 00000000..c4f889c1
--- /dev/null
+++ b/languages/java/tdevdeepcopy.h
@@ -0,0 +1,12 @@
+#ifndef TDEVDEEPCOPY_H
+#define TDEVDEEPCOPY_H
+
+#include <tqstring.h>
+
+inline TQString deepCopy( const TQString& s )
+{
+ TQCString str = s.utf8();
+ return TQString::fromUtf8( str, str.length() );
+}
+
+#endif