summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-02-25 03:12:24 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-02-25 03:14:01 +0100
commit89003e9bd84634ac252c7cace5c7dfb53af1126d (patch)
treef0b18c53ac327db6cd0d9864fad80bf5699eec12 /editeng
parent405caad685edd0ba914789bda01b5dc9b3030773 (diff)
loplugin: unused variables
Change-Id: I63553a09eec81e5ae28aa79ee1d3281053b23d06
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit2.cxx1
-rw-r--r--editeng/source/editeng/impedit3.cxx1
-rw-r--r--editeng/source/editeng/impedit4.cxx2
-rw-r--r--editeng/source/editeng/textconv.cxx1
-rw-r--r--editeng/source/misc/svxacorr.cxx4
5 files changed, 1 insertions, 8 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx
index a6d6dda4a4ca..81295702355f 100644
--- a/editeng/source/editeng/impedit2.cxx
+++ b/editeng/source/editeng/impedit2.cxx
@@ -3505,7 +3505,6 @@ uno::Reference< datatransfer::XTransferable > ImpEditEngine::CreateTransferable(
{
// Office-Bookmark
String aURL( ((const SvxURLField*)pFld)->GetURL() );
- String aTxt( ((const SvxURLField*)pFld)->GetRepresentation() );
pDataObj->GetURL() = aURL;
}
}
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx
index 445d711adbcd..9860c8498a4b 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -1773,7 +1773,6 @@ void ImpEditEngine::ImpBreakLine( ParaPortion* pParaPortion, EditLine* pLine, Te
lang::Locale aLocale = GetLocale( EditPaM( pNode, nMaxBreakPos ) );
Reference < i18n::XBreakIterator > _xBI( ImplGetBreakIterator() );
- OUString aText = pNode->GetString();
Reference< XHyphenator > xHyph;
if ( bCanHyphenate )
xHyph = GetHyphenator();
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx
index 7d34c1451f9a..829887517576 100644
--- a/editeng/source/editeng/impedit4.cxx
+++ b/editeng/source/editeng/impedit4.cxx
@@ -123,7 +123,7 @@ EditPaM ImpEditEngine::ReadText( SvStream& rInput, EditSelection aSel )
aSel = ImpDeleteSelection( aSel );
EditPaM aPaM = aSel.Max();
- XubString aTmpStr, aStr;
+ XubString aTmpStr;
sal_Bool bDone = rInput.ReadByteStringLine( aTmpStr, rInput.GetStreamCharSet() );
while ( bDone )
{
diff --git a/editeng/source/editeng/textconv.cxx b/editeng/source/editeng/textconv.cxx
index d8527cb77b69..1431894dc84a 100644
--- a/editeng/source/editeng/textconv.cxx
+++ b/editeng/source/editeng/textconv.cxx
@@ -358,7 +358,6 @@ void TextConvWrapper::ReplaceUnit(
OUString aOrigTxt( pEditView->GetSelected() );
OUString aNewTxt( rReplaceWith );
- String aNewOrigText;
switch (eAction)
{
case eExchange :
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 870d00b0d01b..d56021b4dac7 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -77,8 +77,6 @@ static const int C_FULL_STOP = 0x01;
static const int C_EXCLAMATION_MARK = 0x02;
static const int C_QUESTION_MARK = 0x04;
-static const sal_Char pImplWrdStt_ExcptLstStr[] = "WordExceptList";
-static const sal_Char pImplCplStt_ExcptLstStr[] = "SentenceExceptList";
static const sal_Char pImplAutocorr_ListStr[] = "DocumentList";
static const sal_Char pXMLImplWrdStt_ExcptLstStr[] = "WordExceptList.xml";
static const sal_Char pXMLImplCplStt_ExcptLstStr[] = "SentenceExceptList.xml";
@@ -2333,8 +2331,6 @@ void SvxAutoCorrectLanguageLists::MakeUserStorage_Impl()
if( xSrcStg.Is() && xDstStg.Is() )
{
- String sWord ( RTL_CONSTASCII_USTRINGPARAM ( pImplWrdStt_ExcptLstStr ) );
- String sSentence ( RTL_CONSTASCII_USTRINGPARAM ( pImplCplStt_ExcptLstStr ) );
String sXMLWord ( RTL_CONSTASCII_USTRINGPARAM ( pXMLImplWrdStt_ExcptLstStr ) );
String sXMLSentence ( RTL_CONSTASCII_USTRINGPARAM ( pXMLImplCplStt_ExcptLstStr ) );
SvStringsISortDtor *pTmpWordList = NULL;