Kaydet (Commit) 41062189 authored tarafından Michael Stahl's avatar Michael Stahl

SfxDocumentMetaData: suppress some spurious warnings

These always trigger on a new document.

Change-Id: Ied60f52c4dc348b2b18f6dc8c30204ee3dc56f29
üst 5f982c22
...@@ -525,7 +525,7 @@ textToDateOrDateTime(css::util::Date & io_rd, css::util::DateTime & io_rdt, ...@@ -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)) { &io_rd, io_rdt, o_rIsDateTime, &o_rTimeZone, i_text)) {
return true; return true;
} else { } else {
SAL_WARN("sfx.doc", "Invalid date: " << i_text ); SAL_WARN_IF(!i_text.isEmpty(), "sfx.doc", "Invalid date: " << i_text);
return false; return false;
} }
} }
...@@ -537,7 +537,7 @@ textToDateTime(css::util::DateTime & io_rdt, const OUString& i_text) throw () ...@@ -537,7 +537,7 @@ textToDateTime(css::util::DateTime & io_rdt, const OUString& i_text) throw ()
if (::sax::Converter::parseDateTime(io_rdt, 0, i_text)) { if (::sax::Converter::parseDateTime(io_rdt, 0, i_text)) {
return true; return true;
} else { } else {
SAL_INFO("sfx.doc", "Invalid date: " << i_text); SAL_WARN_IF(!i_text.isEmpty(), "sfx.doc", "Invalid date: " << i_text);
return false; return false;
} }
} }
...@@ -589,7 +589,7 @@ throw () ...@@ -589,7 +589,7 @@ throw ()
if (::sax::Converter::convertDuration(io_rDur, i_rText)) { if (::sax::Converter::convertDuration(io_rDur, i_rText)) {
return true; return true;
} else { } else {
SAL_WARN("sfx.doc", "Invalid duration: " << i_rText ); SAL_WARN_IF(!i_rText.isEmpty(), "sfx.doc", "Invalid duration: " << i_rText);
return false; return false;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment