summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/codegenerators/javaclassifiercodedocument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'umbrello/umbrello/codegenerators/javaclassifiercodedocument.cpp')
-rw-r--r--umbrello/umbrello/codegenerators/javaclassifiercodedocument.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/umbrello/umbrello/codegenerators/javaclassifiercodedocument.cpp b/umbrello/umbrello/codegenerators/javaclassifiercodedocument.cpp
index e386d01d..877111e1 100644
--- a/umbrello/umbrello/codegenerators/javaclassifiercodedocument.cpp
+++ b/umbrello/umbrello/codegenerators/javaclassifiercodedocument.cpp
@@ -89,10 +89,10 @@ TQString JavaClassifierCodeDocument::getPath ( )
path.simplifyWhiteSpace();
// Replace all blanks with underscore
- path.tqreplace(TQRegExp(" "), "_");
+ path.replace(TQRegExp(" "), "_");
- path.tqreplace(TQRegExp("\\."),"/");
- path.tqreplace(TQRegExp("::"), "/");
+ path.replace(TQRegExp("\\."),"/");
+ path.replace(TQRegExp("::"), "/");
path.lower();
@@ -371,7 +371,7 @@ void JavaClassifierCodeDocument::updateContent( )
// PACKAGE CODE BLOCK
//
TQString pkgs = getPackage();
- pkgs.tqreplace(TQRegExp("::"), ".");
+ pkgs.replace(TQRegExp("::"), ".");
TQString packageText = getPackage().isEmpty() ? "" : "package "+pkgs+';'+endLine;
CodeBlockWithComments * pblock = addOrUpdateTaggedCodeBlockWithComments("packages", packageText, "", 0, false);
if(packageText.isEmpty() && pblock->getContentType() == CodeBlock::AutoGenerated)
@@ -397,7 +397,7 @@ void JavaClassifierCodeDocument::updateContent( )
// NO (default) datatypes in the import statement.. use defined
// ones whould be possible, but no idea how to do that...at least for now.
// Dynamic casting is slow..not an optimal way to do this.
- if (!packageMap.tqcontains(con) && con->getBaseType() != Uml::ot_Datatype)
+ if (!packageMap.contains(con) && con->getBaseType() != Uml::ot_Datatype)
{
packageMap.insert(con, con->getPackage());