summaryrefslogtreecommitdiff
path: root/writerfilter/source/ooxml
diff options
context:
space:
mode:
authorElton Chung <elton@layerjet.com>2012-02-19 16:59:40 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-02-19 17:07:46 +0400
commitd30b4e9fb66f377295d8eeea8c1b1cf879aecdf6 (patch)
treea99079bda02a9d8dd5bd0d54666164f362314c52 /writerfilter/source/ooxml
parent704c9477039e37b4910db6aa8dd644751dd5e6a5 (diff)
Get rid of size() == 0
Diffstat (limited to 'writerfilter/source/ooxml')
-rw-r--r--writerfilter/source/ooxml/OOXMLFastContextHandler.cxx2
-rw-r--r--writerfilter/source/ooxml/OOXMLFastHelper.hxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
index 4b183b903063..f892357f4ee5 100644
--- a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
+++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
@@ -111,7 +111,7 @@ public:
{
string s((*QNameToString::Instance())(rId));
- if (s.size() == 0)
+ if (s.empty())
s = "(fasttoken)" + fastTokenToId(rId);
else
s = "(qname)" + s;
diff --git a/writerfilter/source/ooxml/OOXMLFastHelper.hxx b/writerfilter/source/ooxml/OOXMLFastHelper.hxx
index f9555662041e..c0296c441b43 100644
--- a/writerfilter/source/ooxml/OOXMLFastHelper.hxx
+++ b/writerfilter/source/ooxml/OOXMLFastHelper.hxx
@@ -191,7 +191,7 @@ void OOXMLFastHelper<T>::newProperty(OOXMLFastContextHandler * pHandler,
::rtl::OUStringToOString
(rValue, RTL_TEXTENCODING_ASCII_US).getStr());
- if (aStr.size() == 0)
+ if (aStr.empty())
debug_logger->element( "unknown-qname" );
#endif
@@ -217,7 +217,7 @@ void OOXMLFastHelper<T>::newProperty(OOXMLFastContextHandler * pHandler,
debug_logger->attribute("name", aStr);
debug_logger->attribute("value", pVal->toString());
- if (aStr.size() == 0)
+ if (aStr.empty())
debug_logger->element("unknown-qname");
debug_logger->endElement();
@@ -243,7 +243,7 @@ void OOXMLFastHelper<T>::mark(OOXMLFastContextHandler * pHandler,
::rtl::OUStringToOString
(rValue, RTL_TEXTENCODING_ASCII_US).getStr());
- if (aStr.size() == 0)
+ if (aStr.empty())
debug_logger->element("unknown-qname");
debug_logger->endElement();