summaryrefslogtreecommitdiff
path: root/writerperfect
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-03-04 09:37:09 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2013-03-04 10:00:33 +0100
commit328adfb538032d903dfae32397367259d9c4a605 (patch)
treefc1d6034738553893fbf59119c7551680668231f /writerperfect
parent474c8b8b631c116e3b80a17e9d0a910bb25df6c4 (diff)
Save some getLength calls
Change-Id: I4103a338e487ee29da6ac056215c4fa0a244fa65
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/source/draw/CDRImportFilter.cxx4
-rw-r--r--writerperfect/source/draw/CMXImportFilter.cxx4
-rw-r--r--writerperfect/source/draw/MSPUBImportFilter.cxx4
-rw-r--r--writerperfect/source/draw/VisioImportFilter.cxx2
-rw-r--r--writerperfect/source/draw/WPGImportFilter.cxx2
-rw-r--r--writerperfect/source/writer/MSWorksImportFilter.cxx2
-rw-r--r--writerperfect/source/writer/WordPerfectImportFilter.cxx2
7 files changed, 10 insertions, 10 deletions
diff --git a/writerperfect/source/draw/CDRImportFilter.cxx b/writerperfect/source/draw/CDRImportFilter.cxx
index d0204b3125e7..b5c645201d33 100644
--- a/writerperfect/source/draw/CDRImportFilter.cxx
+++ b/writerperfect/source/draw/CDRImportFilter.cxx
@@ -145,9 +145,9 @@ throw( com::sun::star::uno::RuntimeException )
if (libcdr::CDRDocument::isSupported(&input))
sTypeName = "draw_CorelDraw_Document";
- if (sTypeName.getLength())
+ if (!sTypeName.isEmpty())
{
- if ( location == Descriptor.getLength() )
+ if ( location == nLength )
{
Descriptor.realloc(nLength+1);
Descriptor[location].Name = "TypeName";
diff --git a/writerperfect/source/draw/CMXImportFilter.cxx b/writerperfect/source/draw/CMXImportFilter.cxx
index 8dec7487f4c7..f9c0f21199b6 100644
--- a/writerperfect/source/draw/CMXImportFilter.cxx
+++ b/writerperfect/source/draw/CMXImportFilter.cxx
@@ -144,9 +144,9 @@ throw( com::sun::star::uno::RuntimeException )
if (libcdr::CMXDocument::isSupported(&input))
sTypeName = "draw_Corel_Presentation_Exchange";
- if (sTypeName.getLength())
+ if (!sTypeName.isEmpty())
{
- if ( location == Descriptor.getLength() )
+ if ( location == nLength )
{
Descriptor.realloc(nLength+1);
Descriptor[location].Name = "TypeName";
diff --git a/writerperfect/source/draw/MSPUBImportFilter.cxx b/writerperfect/source/draw/MSPUBImportFilter.cxx
index a8923081df7f..c50571b2dcd4 100644
--- a/writerperfect/source/draw/MSPUBImportFilter.cxx
+++ b/writerperfect/source/draw/MSPUBImportFilter.cxx
@@ -140,9 +140,9 @@ throw( com::sun::star::uno::RuntimeException )
if (libmspub::MSPUBDocument::isSupported(&input))
sTypeName = "draw_Publisher_Document";
- if (sTypeName.getLength())
+ if (!sTypeName.isEmpty())
{
- if ( location == Descriptor.getLength() )
+ if ( location == nLength )
{
Descriptor.realloc(nLength+1);
Descriptor[location].Name = "TypeName";
diff --git a/writerperfect/source/draw/VisioImportFilter.cxx b/writerperfect/source/draw/VisioImportFilter.cxx
index a566947f3fbb..1b803ca65d13 100644
--- a/writerperfect/source/draw/VisioImportFilter.cxx
+++ b/writerperfect/source/draw/VisioImportFilter.cxx
@@ -142,7 +142,7 @@ throw( com::sun::star::uno::RuntimeException )
if (!sTypeName.isEmpty())
{
- if ( location == Descriptor.getLength() )
+ if ( location == nLength ) )
{
Descriptor.realloc(nLength+1);
Descriptor[location].Name = "TypeName";
diff --git a/writerperfect/source/draw/WPGImportFilter.cxx b/writerperfect/source/draw/WPGImportFilter.cxx
index b142e1a640bd..e4067f95743e 100644
--- a/writerperfect/source/draw/WPGImportFilter.cxx
+++ b/writerperfect/source/draw/WPGImportFilter.cxx
@@ -148,7 +148,7 @@ throw( com::sun::star::uno::RuntimeException )
if (!sTypeName.isEmpty())
{
- if ( location == Descriptor.getLength() )
+ if ( location == nLength )
{
Descriptor.realloc(nLength+1);
Descriptor[location].Name = "TypeName";
diff --git a/writerperfect/source/writer/MSWorksImportFilter.cxx b/writerperfect/source/writer/MSWorksImportFilter.cxx
index f441539d93c1..6c37a36e11fa 100644
--- a/writerperfect/source/writer/MSWorksImportFilter.cxx
+++ b/writerperfect/source/writer/MSWorksImportFilter.cxx
@@ -151,7 +151,7 @@ throw( com::sun::star::uno::RuntimeException )
if (!sTypeName.isEmpty())
{
- if ( location == Descriptor.getLength() )
+ if ( location == nLength )
{
Descriptor.realloc(nLength+1);
Descriptor[location].Name = "TypeName";
diff --git a/writerperfect/source/writer/WordPerfectImportFilter.cxx b/writerperfect/source/writer/WordPerfectImportFilter.cxx
index ec476c22b33b..3de972715e23 100644
--- a/writerperfect/source/writer/WordPerfectImportFilter.cxx
+++ b/writerperfect/source/writer/WordPerfectImportFilter.cxx
@@ -206,7 +206,7 @@ throw( RuntimeException )
if (!sTypeName.isEmpty())
{
- if ( location == Descriptor.getLength() )
+ if ( location == nLength )
{
Descriptor.realloc(nLength+1);
Descriptor[location].Name = "TypeName";