diff options
Diffstat (limited to 'addon/xmlparse/main.cpp')
-rw-r--r-- | addon/xmlparse/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addon/xmlparse/main.cpp b/addon/xmlparse/main.cpp index 3575c16..44c5e36 100644 --- a/addon/xmlparse/main.cpp +++ b/addon/xmlparse/main.cpp @@ -63,10 +63,6 @@ int main(int argc,char **argv) } QFile xmlFile(argv[1]); - if (!xmlFile.open( IO_ReadOnly )) - { - qFatal("Could not read %s",argv[1] ); - } #ifdef USE_SAX MainHandler handler; @@ -79,6 +75,10 @@ int main(int argc,char **argv) #endif #ifdef USE_DOM + if (!xmlFile.open( IO_ReadOnly )) + { + qFatal("Could not read %s",argv[1] ); + } QDomDocument doc; doc.setContent( &xmlFile ); |