summaryrefslogtreecommitdiffstats
path: root/kbabel/filters/xliff/xliffexport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/filters/xliff/xliffexport.cpp')
-rw-r--r--kbabel/filters/xliff/xliffexport.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kbabel/filters/xliff/xliffexport.cpp b/kbabel/filters/xliff/xliffexport.cpp
index 82033521..187a1dda 100644
--- a/kbabel/filters/xliff/xliffexport.cpp
+++ b/kbabel/filters/xliff/xliffexport.cpp
@@ -147,7 +147,7 @@ void XLIFFExportPlugin::createMessage( TQDomDocument& doc, TQDomElement& transla
TQDomElement XLIFFExportPlugin::getContext( TQDomDocument& doc, const TQString& file, const TQString& id )
{
// Find out whether there is already such a context in the TQDomDocument.
- TQDomNode tqparentelem = doc.documentElement();
+ TQDomNode parentelem = doc.documentElement();
TQDomNode elem = doc.documentElement( ).firstChild( );
while ( !elem.isNull( ) ) {
if ( elem.isElement( ) && elem.toElement().tagName( ) == "file" && elem.toElement().attribute ("original") == file ) {
@@ -162,12 +162,12 @@ TQDomElement XLIFFExportPlugin::getContext( TQDomDocument& doc, const TQString&
kdError () << "File not found at all, creating" << endl;
TQDomElement newelem = doc.createElement ("file");
newelem.setAttribute ("original", file);
- tqparentelem.appendChild (newelem);
+ parentelem.appendChild (newelem);
elem = newelem;
}
// lookup body tag
- tqparentelem = elem;
+ parentelem = elem;
elem = elem.firstChild ();
while ( !elem.isNull( ) ) {
if ( elem.isElement( ) && elem.toElement().tagName( ) == "body" ) {
@@ -181,7 +181,7 @@ TQDomElement XLIFFExportPlugin::getContext( TQDomDocument& doc, const TQString&
{
kdError () << "File body not found at all, creating" << endl;
TQDomElement newelem = doc.createElement ("body");
- tqparentelem.appendChild (newelem);
+ parentelem.appendChild (newelem);
elem = newelem;
}
@@ -192,7 +192,7 @@ TQDomElement XLIFFExportPlugin::getContext( TQDomDocument& doc, const TQString&
kdError () << "Trans-unit not found at all, creating" << endl;
TQDomElement newelem = doc.createElement ("trans-unit");
newelem.setAttribute ("id", id);
- tqparentelem.appendChild (newelem);
+ parentelem.appendChild (newelem);
elem = newelem;
}