summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-05-03 00:36:33 +0200
committerMichael Stahl <mstahl@redhat.com>2014-05-03 00:51:39 +0200
commit41062189f78990f7aa42949484b58de64b0dce79 (patch)
tree173db946e257481fe741da39f55b0fd42b918f89
parent5f982c22ff6d9354975cfd43aacedf7835418df0 (diff)
SfxDocumentMetaData: suppress some spurious warnings
These always trigger on a new document. Change-Id: Ied60f52c4dc348b2b18f6dc8c30204ee3dc56f29
-rw-r--r--sfx2/source/doc/SfxDocumentMetaData.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx b/sfx2/source/doc/SfxDocumentMetaData.cxx
index d21a85cf7c4b..0eb060b5e307 100644
--- a/sfx2/source/doc/SfxDocumentMetaData.cxx
+++ b/sfx2/source/doc/SfxDocumentMetaData.cxx
@@ -525,7 +525,7 @@ textToDateOrDateTime(css::util::Date & io_rd, css::util::DateTime & io_rdt,
&io_rd, io_rdt, o_rIsDateTime, &o_rTimeZone, i_text)) {
return true;
} else {
- SAL_WARN("sfx.doc", "Invalid date: " << i_text );
+ SAL_WARN_IF(!i_text.isEmpty(), "sfx.doc", "Invalid date: " << i_text);
return false;
}
}
@@ -537,7 +537,7 @@ textToDateTime(css::util::DateTime & io_rdt, const OUString& i_text) throw ()
if (::sax::Converter::parseDateTime(io_rdt, 0, i_text)) {
return true;
} else {
- SAL_INFO("sfx.doc", "Invalid date: " << i_text);
+ SAL_WARN_IF(!i_text.isEmpty(), "sfx.doc", "Invalid date: " << i_text);
return false;
}
}
@@ -589,7 +589,7 @@ throw ()
if (::sax::Converter::convertDuration(io_rDur, i_rText)) {
return true;
} else {
- SAL_WARN("sfx.doc", "Invalid duration: " << i_rText );
+ SAL_WARN_IF(!i_rText.isEmpty(), "sfx.doc", "Invalid duration: " << i_rText);
return false;
}
}