summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-09 15:56:09 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-09 16:59:42 +0100
commit43e01ae9700fafab5441a61be088554737ce5437 (patch)
tree4bec7e3602fa8b4a1a83fad6942171b575cf0187 /sw
parentae95703819348938bf9e44bd635365e3e48cd05d (diff)
fix string
Change-Id: Id441395365d3cb6f598760042d5e54e905783b91
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unosect.cxx4
-rw-r--r--sw/source/ui/app/applab.cxx1
2 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unosect.cxx b/sw/source/core/unocore/unosect.cxx
index 5f7be3d5e11d..957eb12c5cad 100644
--- a/sw/source/core/unocore/unosect.cxx
+++ b/sw/source/core/unocore/unosect.cxx
@@ -728,11 +728,11 @@ throw (beans::UnknownPropertyException, beans::PropertyVetoException,
OUString sSectLink(pSectionData->GetLinkFileName());
while (3 < comphelper::string::getTokenCount(sSectLink, sfx2::cTokenSeparator))
{
- sSectLink += sfx2::cTokenSeparator;
+ sSectLink += OUString(sfx2::cTokenSeparator);
}
sSectLink = comphelper::string::setToken(sSectLink, 2, sfx2::cTokenSeparator, sLink);
pSectionData->SetLinkFileName(sSectLink);
- if (sSectLink.Len() < 3)
+ if (sSectLink.getLength() < 3)
{
pSectionData->SetType(CONTENT_SECTION);
}
diff --git a/sw/source/ui/app/applab.cxx b/sw/source/ui/app/applab.cxx
index bfe3481adf14..5309f8683429 100644
--- a/sw/source/ui/app/applab.cxx
+++ b/sw/source/ui/app/applab.cxx
@@ -22,6 +22,7 @@
#include <hintids.hxx>
+#include <comphelper/string.hxx>
#include <vcl/svapp.hxx>
#include <vcl/wrkwin.hxx>
#include <vcl/msgbox.hxx>