summaryrefslogtreecommitdiff
path: root/svgio/source/svgreader/svgnode.cxx
diff options
context:
space:
mode:
authorChr. Rossmanith <ChrRossmanith@gmx.de>2013-06-17 11:46:22 +0200
committerNoel Power <noel.power@suse.com>2013-06-18 15:09:07 +0000
commitf8d1dcc621b04fd17577905e9b1bdf71f33c7b57 (patch)
tree386f6bcd4b323646c80810095dc7a57dbe92e0af /svgio/source/svgreader/svgnode.cxx
parent0b67caf467c2243086f4ad29415d6d95f58838db (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/svgnode.cxx')
-rw-r--r--svgio/source/svgreader/svgnode.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/svgio/source/svgreader/svgnode.cxx b/svgio/source/svgreader/svgnode.cxx
index 7cb74875d287..3bc092d5ec3e 100644
--- a/svgio/source/svgreader/svgnode.cxx
+++ b/svgio/source/svgreader/svgnode.cxx
@@ -67,7 +67,7 @@ namespace svgio
aId = aId + aOUTokenValue;
pNew = rDocument.findSvgStyleAttributesById(aId);
- if(!pNew && rClassStr.getLength())
+ if(!pNew && !rClassStr.isEmpty())
{
// look for CSS style common to class.token
aId = rClassStr + aId;
@@ -93,7 +93,7 @@ namespace svgio
}
}
- if(maCssStyleVector.empty() && rClassStr.getLength())
+ if(maCssStyleVector.empty() && !rClassStr.isEmpty())
{
// if none found, search for CSS style equal to class type
const SvgStyleAttributes* pNew = rDocument.findSvgStyleAttributesById(rClassStr);
@@ -326,7 +326,7 @@ namespace svgio
{
case SVGTokenId:
{
- if(aContent.getLength())
+ if(!aContent.isEmpty())
{
setId(&aContent);
}
@@ -334,7 +334,7 @@ namespace svgio
}
case SVGTokenClass:
{
- if(aContent.getLength())
+ if(!aContent.isEmpty())
{
setClass(&aContent);
}
@@ -342,7 +342,7 @@ namespace svgio
}
case SVGTokenXmlSpace:
{
- if(aContent.getLength())
+ if(!aContent.isEmpty())
{
static OUString aStrDefault(OUString::createFromAscii("default"));
static OUString aStrPreserve(OUString::createFromAscii("preserve"));
@@ -443,7 +443,7 @@ namespace svgio
const OUString& rTitle = pStyles->getTitle();
const OUString& rDesc = pStyles->getDesc();
- if(rTitle.getLength() || rDesc.getLength())
+ if(!rTitle.isEmpty() || !rDesc.isEmpty())
{
// default object name is empty
OUString aObjectName;
@@ -453,7 +453,7 @@ namespace svgio
{
aObjectName = getDocument().getAbsolutePath();
- if(aObjectName.getLength())
+ if(!aObjectName.isEmpty())
{
INetURLObject aURL(aObjectName);