Diffstat (limited to 'core/pim/datebook/holiday/national/nationalcfg.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/holiday/national/nationalcfg.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/core/pim/datebook/holiday/national/nationalcfg.cpp b/core/pim/datebook/holiday/national/nationalcfg.cpp index a293251..52c453f 100644 --- a/core/pim/datebook/holiday/national/nationalcfg.cpp +++ b/core/pim/datebook/holiday/national/nationalcfg.cpp @@ -27,3 +27,2 @@ bool NHcfg::load(const QString&aPath) _content.clear();
- odebug << "Start loading file "<<_path<<oendl;
QFile *f=new QFile(_path);
@@ -33,9 +32,5 @@ bool NHcfg::load(const QString&aPath) }
- odebug << "Source" << oendl;
QXmlInputSource is(*f);
- odebug << "Reader" << oendl;
QXmlSimpleReader reader;
- odebug << "Handler" << oendl;
reader.setContentHandler(this);
- odebug << "Error handler" << oendl;
reader.setErrorHandler(this);
@@ -43,5 +38,5 @@ bool NHcfg::load(const QString&aPath) err = "";
- odebug << "parse it" << oendl;
bool ret = reader.parse(is);
- odebug << "Errors: " << err << oendl;
+ if (err.length()>0)
+ odebug << "Errors: " << err << oendl;
return ret;
@@ -93,3 +88,2 @@ bool NHcfg::startElement(const QString&, const QString&,const QString& name, con bool ret = false;
- odebug << "startElement: " << name << oendl;
if (name==_key_doc) {
@@ -146,3 +140,2 @@ bool NHcfg::setName(const QXmlAttributes&attr) _contentname = attr.value(nindx);
- odebug << "Contentname = " << _contentname<<oendl;
return true;
|