summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/codegenerators/xmlschemawriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'umbrello/umbrello/codegenerators/xmlschemawriter.cpp')
-rw-r--r--umbrello/umbrello/codegenerators/xmlschemawriter.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/umbrello/umbrello/codegenerators/xmlschemawriter.cpp b/umbrello/umbrello/codegenerators/xmlschemawriter.cpp
index 00753349..39b530bb 100644
--- a/umbrello/umbrello/codegenerators/xmlschemawriter.cpp
+++ b/umbrello/umbrello/codegenerators/xmlschemawriter.cpp
@@ -87,8 +87,8 @@ void XMLSchemaWriter::writeClass(UMLClassifier *c)
// 1. create the header
TQString headerText = getHeadingFile(".xsd");
if(!headerText.isEmpty()) {
- headerText.tqreplace(TQRegExp("%filename%"),fileName);
- headerText.tqreplace(TQRegExp("%filepath%"),file.name());
+ headerText.replace(TQRegExp("%filename%"),fileName);
+ headerText.replace(TQRegExp("%filepath%"),file.name());
}
if(!headerText.isEmpty())
XMLschema<<headerText<<m_endl;
@@ -445,7 +445,7 @@ void XMLSchemaWriter::writeChildObjsInAssociation (UMLClassifier *c,
}
bool XMLSchemaWriter::hasBeenWritten(UMLClassifier *c) {
- if (writtenClassifiers.tqcontains(c))
+ if (writtenClassifiers.contains(c))
return true;
else
return false;
@@ -529,7 +529,7 @@ void XMLSchemaWriter::writeComment( const TQString &comment, TQTextStream &XMLsc
// need to resolve for using with MAC/WinDoze eventually I assume
TQString indent = getIndent();
XMLschema<<indent<<"<!-- ";
- if (comment.tqcontains(TQRegExp("\n"))) {
+ if (comment.contains(TQRegExp("\n"))) {
XMLschema<<m_endl;
TQStringList lines = TQStringList::split( "\n", comment);
for(uint i= 0; i < lines.count(); i++)
@@ -673,10 +673,10 @@ void XMLSchemaWriter::writeAssociationRoleDecl( UMLClassifier *c, const TQString
{
// populate both with the actual value as long as our value isnt an asterix
// In that case, use special value (from above)
- if(values[0].tqcontains(TQRegExp("\\d{1,}")))
+ if(values[0].contains(TQRegExp("\\d{1,}")))
minOccurs = values[0]; // use first number in sequence
- if(values[values.count()-1].tqcontains(TQRegExp("\\d{1,}")))
+ if(values[values.count()-1].contains(TQRegExp("\\d{1,}")))
maxOccurs = values[values.count()-1]; // use only last number in sequence
}
}
@@ -736,8 +736,8 @@ void XMLSchemaWriter::writeAssociationRoleDecl( UMLClassifier *c, const TQString
// Same thing again for "bool" to "boolean"
TQString XMLSchemaWriter::fixTypeName(const TQString& string)
{
- // string.tqreplace(TQRegExp("^string$"),schemaNamespaceTag+":string");
- // string.tqreplace(TQRegExp("^bool$"),schemaNamespaceTag+":boolean");
+ // string.replace(TQRegExp("^string$"),schemaNamespaceTag+":string");
+ // string.replace(TQRegExp("^bool$"),schemaNamespaceTag+":boolean");
return schemaNamespaceTag + ':' + string;
}