summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-01 14:37:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-02 07:12:46 +0000
commita7369d98991eb41e0e6bb008ef0305c17859540e (patch)
tree8bc87665d071392677446332725de3b6004d1530 /linguistic
parent5d39c2013374727b1c8f147b8b99d54402a7ff02 (diff)
loplugin:oncevar in helpcompiler..reportdesign
Change-Id: I2dc57931fb230953c285aeb18f57c0a41fedafcb Reviewed-on: https://gerrit.libreoffice.org/30463 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/dicimp.cxx4
-rw-r--r--linguistic/source/dlistimp.cxx7
2 files changed, 3 insertions, 8 deletions
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx
index 3e7ff05ab18e..5efe94f475de 100644
--- a/linguistic/source/dicimp.cxx
+++ b/linguistic/source/dicimp.cxx
@@ -1018,9 +1018,7 @@ void DicEntry::splitDicFileWord(const OUString &rDicFileWord,
{
MutexGuard aGuard( GetLinguMutex() );
- static const char aDelim[] = "==";
-
- sal_Int32 nDelimPos = rDicFileWord.indexOf( aDelim );
+ sal_Int32 nDelimPos = rDicFileWord.indexOf( "==" );
if (-1 != nDelimPos)
{
sal_Int32 nTriplePos = nDelimPos + 2;
diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx
index f4506ee5343f..6b2a43be4068 100644
--- a/linguistic/source/dlistimp.cxx
+++ b/linguistic/source/dlistimp.cxx
@@ -790,16 +790,13 @@ static void AddInternal(
if (rDic.is())
{
//! TL TODO: word iterator should be used to break up the text
- static const char aDefWordDelim[] =
- "!\"#$%&'()*+,-/:;<=>?[]\\_^`{|}~\t \n";
- OUString aDelim(aDefWordDelim);
+ OUString aDelim("!\"#$%&'()*+,-/:;<=>?[]\\_^`{|}~\t \n");
OSL_ENSURE(aDelim.indexOf(static_cast<sal_Unicode>('.')) == -1,
"ensure no '.'");
OUString aToken;
sal_Int32 nPos = 0;
- while (-1 !=
- (nPos = lcl_GetToken( aToken, rNew, nPos, aDelim )))
+ while (-1 != (nPos = lcl_GetToken( aToken, rNew, nPos, aDelim )))
{
if( !aToken.isEmpty() && !IsNumeric( aToken ) )
{