diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-03-04 09:37:09 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-03-04 10:00:33 +0100 |
commit | 328adfb538032d903dfae32397367259d9c4a605 (patch) | |
tree | fc1d6034738553893fbf59119c7551680668231f /writerperfect/source/draw/CMXImportFilter.cxx | |
parent | 474c8b8b631c116e3b80a17e9d0a910bb25df6c4 (diff) |
Save some getLength calls
Change-Id: I4103a338e487ee29da6ac056215c4fa0a244fa65
Diffstat (limited to 'writerperfect/source/draw/CMXImportFilter.cxx')
-rw-r--r-- | writerperfect/source/draw/CMXImportFilter.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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"; |