diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-09-27 20:21:15 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-09-27 20:22:03 +0200 |
commit | 6671fa81db0ecea4ada005bb79f55f08fb440ad4 (patch) | |
tree | 85ad806ece8d60736b6b01310b04b053dc2f8179 /sdext | |
parent | b6d8251eee90b7e24ebb3f8452eff36a507e6d91 (diff) |
Removed uses of rtl::O[U]String[Buffer]::operator sal_{char|Unicode} const *().
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/pdfimport/tree/drawtreevisiting.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sdext/source/pdfimport/tree/drawtreevisiting.cxx b/sdext/source/pdfimport/tree/drawtreevisiting.cxx index 37f9785e1469..2b5b3af14772 100644 --- a/sdext/source/pdfimport/tree/drawtreevisiting.cxx +++ b/sdext/source/pdfimport/tree/drawtreevisiting.cxx @@ -685,13 +685,10 @@ void DrawXmlOptimizer::visit( PageElement& elem, const std::list< Element* >::co bool isSpaces(TextElement* pTextElem) { - rtl::OUString strSpace(32); - ::rtl::OUString ouTxt2(pTextElem->Text); - for(int i=0; i< pTextElem->Text.getLength(); i++) - { - rtl::OUString strToken = ouTxt2.copy(i,1) ; - if( !strSpace.equals(strToken) ) + for (sal_Int32 i = 0; i != pTextElem->Text.getLength(); ++i) { + if (pTextElem->Text[i] != ' ') { return false; + } } return true; } |