diff options
author | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2013-06-17 11:46:22 +0200 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2013-06-18 15:09:07 +0000 |
commit | f8d1dcc621b04fd17577905e9b1bdf71f33c7b57 (patch) | |
tree | 386f6bcd4b323646c80810095dc7a57dbe92e0af /svgio/source/svgreader/svgdocument.cxx | |
parent | 0b67caf467c2243086f4ad29415d6d95f58838db (diff) |
fdo#43460: Use isEmpty() instead of getLength() in svgio
Change-Id: I31298a08408a14e1ae0d43b474681e6336b08003
Reviewed-on: https://gerrit.libreoffice.org/4340
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'svgio/source/svgreader/svgdocument.cxx')
-rw-r--r-- | svgio/source/svgreader/svgdocument.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svgio/source/svgreader/svgdocument.cxx b/svgio/source/svgreader/svgdocument.cxx index 705df546838a..7a34e38eecfa 100644 --- a/svgio/source/svgreader/svgdocument.cxx +++ b/svgio/source/svgreader/svgdocument.cxx @@ -51,7 +51,7 @@ namespace svgio void SvgDocument::addSvgNodeToMapper(const OUString& rStr, const SvgNode& rNode) { - if(rStr.getLength()) + if(!rStr.isEmpty()) { maIdTokenMapperList.insert(IdTokenValueType(rStr, &rNode)); } @@ -59,7 +59,7 @@ namespace svgio void SvgDocument::removeSvgNodeFromMapper(const OUString& rStr) { - if(rStr.getLength()) + if(!rStr.isEmpty()) { maIdTokenMapperList.erase(rStr); } @@ -81,7 +81,7 @@ namespace svgio void SvgDocument::addSvgStyleAttributesToMapper(const OUString& rStr, const SvgStyleAttributes& rSvgStyleAttributes) { - if(rStr.getLength()) + if(!rStr.isEmpty()) { maIdStyleTokenMapperList.insert(IdStyleTokenValueType(rStr, &rSvgStyleAttributes)); } |