diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-03-08 14:11:35 +0100 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-03-08 13:16:49 +0000 |
commit | 4bf95c4c31dd871065d4042028a4b3ae476dab70 (patch) | |
tree | 2935dfd660fc2ee2b914ca27a72077e51e5862f3 /writerfilter | |
parent | Remove RTL_CONST* macros from codemaker - pt1 (diff) | |
download | core-4bf95c4c31dd871065d4042028a4b3ae476dab70.tar.gz core-4bf95c4c31dd871065d4042028a4b3ae476dab70.zip |
make use of startsWith()
Change-Id: Ie70097de550ddd1cddc6714f8f86f9723cb36679
Reviewed-on: https://gerrit.libreoffice.org/2599
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper_Impl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx index 92be3877daf2..423019cb6bfe 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx @@ -2867,10 +2867,10 @@ void DomainMapper_Impl::CloseFieldCommand() nSpaceIndex = aCommand.indexOf(' '); if(nSpaceIndex > 0) aCommand = aCommand.copy(nSpaceIndex).trim(); - if (aCommand.compareTo("\\s", 2) == 0) + if (aCommand.startsWith("\\s")) { aCommand = aCommand.copy(2); - if (aCommand.compareTo("\\do", 3) == 0) + if (aCommand.startsWith("\\do")) { aCommand = aCommand.copy(3); sal_Int32 nStartIndex = aCommand.indexOf('('); |