diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-02 10:55:27 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-05 09:18:19 +0000 |
commit | bacfd2dc4cea1a5d87658ed8592116acd931e000 (patch) | |
tree | d22172a33fdd13a440b6882a28c23ea2d639bbad /sw/source/ui/vba | |
parent | 6281eb0e0792da0194c07da18296e94dd944b8e5 (diff) |
add a comphelper::string::getTokenCount
suitable for conversion from [Byte]String::GetTokenCount
converted low-hanging variants to rtl::O[UString]::getToken loops
added unit test
Diffstat (limited to 'sw/source/ui/vba')
-rw-r--r-- | sw/source/ui/vba/vbaselection.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/ui/vba/vbaselection.cxx b/sw/source/ui/vba/vbaselection.cxx index 3b115ad4c7bd..51530eaca059 100644 --- a/sw/source/ui/vba/vbaselection.cxx +++ b/sw/source/ui/vba/vbaselection.cxx @@ -35,6 +35,7 @@ #include <com/sun/star/text/XTextTableCursor.hpp> #include <com/sun/star/text/ControlCharacter.hpp> #include <com/sun/star/table/XCell.hpp> +#include <comphelper/string.hxx> #include <ooo/vba/word/WdUnits.hpp> #include <ooo/vba/word/WdMovementType.hpp> #include <ooo/vba/word/WdGoToItem.hpp> @@ -1002,7 +1003,7 @@ void SwVbaSelection::GetSelectedCellRange( rtl::OUString& sTLName, rtl::OUString if( xTextTableCursor.is() ) { String sRange( xTextTableCursor->getRangeName() ); - if( sRange.GetTokenCount(':') > 0 ) + if( comphelper::string::getTokenCount(sRange, ':') > 0 ) { sTLName = sRange.GetToken(0, ':'); sBRName = sRange.GetToken(1, ':'); |