summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-11-21 16:04:11 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-11-21 16:05:31 +0100
commitc1200f5eeed0d1ce974dd551c330f72546317630 (patch)
treea8bd0f23bbe21492c98a797f63cdd6360515cf2c /sw
parent754dc17b3f5d786329d454a4aed5fc9d1c91b0d9 (diff)
unused variables
Change-Id: I216b6ddff479ecf45a9950c05d4d65d55afbc7a1
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/crsr/bookmrk.cxx1
-rw-r--r--sw/source/core/crsr/findtxt.cxx1
-rw-r--r--sw/source/core/doc/docedt.cxx6
-rw-r--r--sw/source/core/doc/docnum.cxx2
-rw-r--r--sw/source/core/draw/dflyobj.cxx1
-rw-r--r--sw/source/core/layout/pagechg.cxx1
-rw-r--r--sw/source/core/layout/wsfrm.cxx1
-rw-r--r--sw/source/core/unocore/unochart.cxx6
-rw-r--r--sw/source/filter/html/htmlcss1.cxx1
-rw-r--r--sw/source/filter/html/htmlform.cxx3
-rw-r--r--sw/source/filter/html/htmlftn.cxx2
-rw-r--r--sw/source/filter/html/svxcss1.cxx2
-rw-r--r--sw/source/filter/xml/xmltexti.cxx1
-rw-r--r--sw/source/ui/app/docsh.cxx2
-rw-r--r--sw/source/ui/config/fontcfg.cxx1
-rw-r--r--sw/source/ui/config/mailconfigpage.cxx1
-rw-r--r--sw/source/ui/config/modcfg.cxx2
-rw-r--r--sw/source/ui/config/optpage.cxx6
-rw-r--r--sw/source/ui/dbui/createaddresslistdialog.cxx3
-rw-r--r--sw/source/ui/dbui/dbmgr.cxx2
-rw-r--r--sw/source/ui/dbui/mailmergechildwindow.cxx1
-rw-r--r--sw/source/ui/dbui/mmconfigitem.cxx1
-rw-r--r--sw/source/ui/dbui/mmoutputpage.cxx1
-rw-r--r--sw/source/ui/dochdl/gloshdl.cxx1
-rw-r--r--sw/source/ui/docvw/romenu.cxx2
-rw-r--r--sw/source/ui/fldui/flddok.cxx1
-rw-r--r--sw/source/ui/misc/glosbib.cxx1
-rw-r--r--sw/source/ui/misc/insrule.cxx1
-rw-r--r--sw/source/ui/misc/redlndlg.cxx3
-rw-r--r--sw/source/ui/shells/frmsh.cxx1
-rw-r--r--sw/source/ui/shells/textfld.cxx1
-rw-r--r--sw/source/ui/table/tautofmt.cxx1
-rw-r--r--sw/source/ui/utlui/condedit.cxx1
-rw-r--r--sw/source/ui/utlui/navipi.cxx3
-rw-r--r--sw/source/ui/vba/vbaselection.cxx1
35 files changed, 4 insertions, 61 deletions
diff --git a/sw/source/core/crsr/bookmrk.cxx b/sw/source/core/crsr/bookmrk.cxx
index 75f58ca57d0f..fa209c9c4d5f 100644
--- a/sw/source/core/crsr/bookmrk.cxx
+++ b/sw/source/core/crsr/bookmrk.cxx
@@ -191,7 +191,6 @@ namespace sw { namespace mark
if(nCount == SAL_MAX_INT32)
{
sal_Int32 nRandom;
- ::rtl::OUStringBuffer sUniquePostfixBuffer;
rtl_random_getBytes(aPool, &nRandom, sizeof(nRandom));
sUniquePostfix = ::rtl::OUStringBuffer(13).append('_').append(static_cast<sal_Int32>(abs(nRandom))).makeStringAndClear();
nCount = 0;
diff --git a/sw/source/core/crsr/findtxt.cxx b/sw/source/core/crsr/findtxt.cxx
index 76c843bc8de6..e9c40d75561f 100644
--- a/sw/source/core/crsr/findtxt.cxx
+++ b/sw/source/core/crsr/findtxt.cxx
@@ -665,7 +665,6 @@ String *ReplaceBackReferences( const SearchOptions& rSearchOpt, SwPaM* pPam )
{
utl::TextSearch aSTxt( rSearchOpt );
String aStr( pPam->GetTxt() );
- String aSearchStr( rSearchOpt.searchString );
String aReplaceStr( rSearchOpt.replaceString );
aStr = comphelper::string::remove(aStr, CH_TXTATR_BREAKWORD);
aStr = comphelper::string::remove(aStr, CH_TXTATR_INWORD);
diff --git a/sw/source/core/doc/docedt.cxx b/sw/source/core/doc/docedt.cxx
index 9bd01962f210..dc6ae1d908e7 100644
--- a/sw/source/core/doc/docedt.cxx
+++ b/sw/source/core/doc/docedt.cxx
@@ -757,9 +757,6 @@ bool SwDoc::Overwrite( const SwPaM &rRg, const String &rStr )
SwIndex& rIdx = rPt.nContent;
xub_StrLen nStart = 0;
- sal_Unicode c;
- String aStr;
-
bool bOldExpFlg = pNode->IsIgnoreDontExpand();
pNode->SetIgnoreDontExpand( true );
@@ -771,7 +768,7 @@ bool SwDoc::Overwrite( const SwPaM &rRg, const String &rStr )
{
lcl_SkipAttr( pNode, rIdx, nStart );
}
- c = rStr.GetChar( nCnt );
+ sal_Unicode c = rStr.GetChar( nCnt );
if (GetIDocumentUndoRedo().DoesUndo())
{
bool bMerged(false);
@@ -1949,7 +1946,6 @@ uno::Any SwDoc::Spell( SwPaM& rPaM,
uno::Reference< linguistic2::XProofreadingIterator > xGCIterator( GetGCIterator() );
if (xGCIterator.is())
{
- String aText( ((SwTxtNode*)pNd)->GetTxt().Copy( nBeginGrammarCheck, nEndGrammarCheck - nBeginGrammarCheck ) );
uno::Reference< lang::XComponent > xDoc( ((SwDocShell*)GetDocShell())->GetBaseModel(), uno::UNO_QUERY );
// Expand the string:
const ModelToViewHelper aConversionMap(*(SwTxtNode*)pNd);
diff --git a/sw/source/core/doc/docnum.cxx b/sw/source/core/doc/docnum.cxx
index 0ae339d47a62..475d8cae7d91 100644
--- a/sw/source/core/doc/docnum.cxx
+++ b/sw/source/core/doc/docnum.cxx
@@ -1697,8 +1697,6 @@ bool SwDoc::NumUpDown( const SwPaM& rPam, bool bDown )
GetIDocumentUndoRedo().AppendUndo(pUndo);
}
- String sNumRule;
-
for(sal_uLong nTmp = nStt; nTmp <= nEnd; ++nTmp )
{
SwTxtNode* pTNd = GetNodes()[ nTmp ]->GetTxtNode();
diff --git a/sw/source/core/draw/dflyobj.cxx b/sw/source/core/draw/dflyobj.cxx
index d8bddbce0edf..2db70e9620ce 100644
--- a/sw/source/core/draw/dflyobj.cxx
+++ b/sw/source/core/draw/dflyobj.cxx
@@ -961,7 +961,6 @@ SdrObject* SwVirtFlyDrawObj::CheckMacroHit( const SdrObjMacroHitRec& rRec ) cons
if( aRect.IsInside( rRec.aPos ) )
{
- SwRect aActRect( aRect );
aRect.Pos().X() += rRec.nTol;
aRect.Pos().Y() += rRec.nTol;
aRect.SSize().Height()-= 2 * rRec.nTol;
diff --git a/sw/source/core/layout/pagechg.cxx b/sw/source/core/layout/pagechg.cxx
index 40b3b7a0a611..e020077efee1 100644
--- a/sw/source/core/layout/pagechg.cxx
+++ b/sw/source/core/layout/pagechg.cxx
@@ -2189,7 +2189,6 @@ void SwRootFrm::CheckViewLayout( const SwViewOption* pViewOpt, const SwRect* pVi
}
else
{
- SwRect aPageFrm;
if ( !pPageFrm->IsEmptyPage() )
{
nPageWidth = pPageFrm->Frm().Width() + nSidebarWidth + (bStartOfRow ? 0 : nGapBetweenPages);
diff --git a/sw/source/core/layout/wsfrm.cxx b/sw/source/core/layout/wsfrm.cxx
index b445f6f27413..7025c2b3581a 100644
--- a/sw/source/core/layout/wsfrm.cxx
+++ b/sw/source/core/layout/wsfrm.cxx
@@ -1456,7 +1456,6 @@ SwTwips SwFrm::AdjustNeighbourhood( SwTwips nDiff, sal_Bool bTst )
}
if ( !bTst && nChg )
{
- const SwRect aOldRect( pUp->Frm() );
pUp->Frm().SSize().Height() += nChg;
pUp->Prt().SSize().Height() += nChg;
if ( pViewShell )
diff --git a/sw/source/core/unocore/unochart.cxx b/sw/source/core/unocore/unochart.cxx
index 6930e35e2618..115d8648562c 100644
--- a/sw/source/core/unocore/unochart.cxx
+++ b/sw/source/core/unocore/unochart.cxx
@@ -147,8 +147,6 @@ void SwChartLockController_Helper::LockUnlockAllCharts( sal_Bool bLock )
pTblNd->GetNodes().IsDocNodes() )
{
uno::Reference< frame::XModel > xRes;
-
- String aName( pTmpTbl->GetFrmFmt()->GetName() );
SwOLENode *pONd;
SwStartNode *pStNd;
SwNodeIndex aIdx( *pDoc->GetNodes().GetEndOfAutotext().StartOfSectionNode(), 1 );
@@ -1950,8 +1948,6 @@ SwChartDataSequence::SwChartDataSequence(
release();
#if OSL_DEBUG_LEVEL > 0
- OUString aRangeStr( getSourceRangeRepresentation() );
-
// check if it can properly convert into a SwUnoTableCrsr
// which is required for some functions
SwUnoTableCrsr* pUnoTblCrsr = dynamic_cast<SwUnoTableCrsr*>(pTblCrsr);
@@ -2000,8 +1996,6 @@ SwChartDataSequence::SwChartDataSequence( const SwChartDataSequence &rObj ) :
release();
#if OSL_DEBUG_LEVEL > 0
- OUString aRangeStr( getSourceRangeRepresentation() );
-
// check if it can properly convert into a SwUnoTableCrsr
// which is required for some functions
SwUnoTableCrsr* pUnoTblCrsr = dynamic_cast<SwUnoTableCrsr*>(pTblCrsr);
diff --git a/sw/source/filter/html/htmlcss1.cxx b/sw/source/filter/html/htmlcss1.cxx
index df4d50f13d8e..faf54369c215 100644
--- a/sw/source/filter/html/htmlcss1.cxx
+++ b/sw/source/filter/html/htmlcss1.cxx
@@ -1303,7 +1303,6 @@ SwTxtFmtColl *SwCSS1Parser::GetTxtFmtColl( sal_uInt16 nTxtColl,
}
}
- String sName;
if( USER_FMT & nTxtColl ) // eine vom Reader angelegte
{
OSL_ENSURE( !this, "Wo kommt die Benutzer-Vorlage her?" );
diff --git a/sw/source/filter/html/htmlform.cxx b/sw/source/filter/html/htmlform.cxx
index 1b7e776a0811..c1c13236d74a 100644
--- a/sw/source/filter/html/htmlform.cxx
+++ b/sw/source/filter/html/htmlform.cxx
@@ -2500,9 +2500,6 @@ void SwHTMLParser::EndSelect()
const uno::Reference< beans::XPropertySet > & rPropSet =
pFormImpl->GetFCompPropSet();
- // die Groesse anpassen
- Size aNewSz( MINFLY, MINFLY );
-
size_t nEntryCnt = pFormImpl->GetStringList().size();
if(!pFormImpl->GetStringList().empty())
{
diff --git a/sw/source/filter/html/htmlftn.cxx b/sw/source/filter/html/htmlftn.cxx
index ba20f94d519e..756d2180e4eb 100644
--- a/sw/source/filter/html/htmlftn.cxx
+++ b/sw/source/filter/html/htmlftn.cxx
@@ -441,7 +441,7 @@ void SwHTMLWriter::OutFootEndNoteSym( const SwFmtFtn& rFmtFtn,
{
const SwEndNoteInfo *pInfo;
- String sFtnName, sClass, sPrefix, sSuffix;
+ String sFtnName, sClass;
if( rFmtFtn.IsEndNote() )
{
sClass.AssignAscii( OOO_STRING_SVTOOLS_HTML_sdendnote_sym );
diff --git a/sw/source/filter/html/svxcss1.cxx b/sw/source/filter/html/svxcss1.cxx
index c9925b49c0eb..e5634312a288 100644
--- a/sw/source/filter/html/svxcss1.cxx
+++ b/sw/source/filter/html/svxcss1.cxx
@@ -1090,7 +1090,7 @@ static void ParseCSS1_font_family( const CSS1Expression *pExpr,
{
OSL_ENSURE( pExpr, "no expression" );
- String aName, aStyleName, aDfltName;
+ String aName, aStyleName;
FontFamily eFamily = FAMILY_DONTKNOW;
FontPitch ePitch = PITCH_DONTKNOW;
rtl_TextEncoding eEnc = rParser.GetDfltEncoding();
diff --git a/sw/source/filter/xml/xmltexti.cxx b/sw/source/filter/xml/xmltexti.cxx
index f62fbe074a41..ab480307e505 100644
--- a/sw/source/filter/xml/xmltexti.cxx
+++ b/sw/source/filter/xml/xmltexti.cxx
@@ -560,7 +560,6 @@ uno::Reference< XPropertySet > SwXMLTextImportHelper::createAndInsertOOoLink(
SfxItemSet aItemSet( pDoc->GetAttrPool(), RES_FRMATR_BEGIN,
RES_FRMATR_END );
Size aTwipSize( 0, 0 );
- Rectangle aVisArea( 0, 0, nWidth, nHeight );
lcl_putHeightAndWidth( aItemSet, nHeight, nWidth,
&aTwipSize.Height(), &aTwipSize.Width() );
diff --git a/sw/source/ui/app/docsh.cxx b/sw/source/ui/app/docsh.cxx
index fdf197c1b891..e010ab65f386 100644
--- a/sw/source/ui/app/docsh.cxx
+++ b/sw/source/ui/app/docsh.cxx
@@ -450,8 +450,6 @@ sal_Bool SwDocShell::SaveAs( SfxMedium& rMedium )
// normal doc shell, therefore, SfxInplaceObject::SaveAs
// will set the wrong class id.
SvGlobalName aClassName;
- String aAppName, aLongUserName, aUserName;
-
// The document is closed explicitly, but using SfxObjectShellLock is still more correct here
SfxObjectShellLock xDocSh =
new SwGlobalDocShell( SFX_CREATE_MODE_INTERNAL );
diff --git a/sw/source/ui/config/fontcfg.cxx b/sw/source/ui/config/fontcfg.cxx
index f1e58c13a019..43b4a259301f 100644
--- a/sw/source/ui/config/fontcfg.cxx
+++ b/sw/source/ui/config/fontcfg.cxx
@@ -237,7 +237,6 @@ sal_Bool SwStdFontConfig::IsFontDefault(sal_uInt16 nFontType) const
String SwStdFontConfig::GetDefaultFor(sal_uInt16 nFontType, LanguageType eLang)
{
- String sRet;
sal_uInt16 nFontId;
switch( nFontType )
{
diff --git a/sw/source/ui/config/mailconfigpage.cxx b/sw/source/ui/config/mailconfigpage.cxx
index 197259a2e4ef..3d85a431fb83 100644
--- a/sw/source/ui/config/mailconfigpage.cxx
+++ b/sw/source/ui/config/mailconfigpage.cxx
@@ -183,7 +183,6 @@ sal_Bool SwMailConfigPage::FillItemSet( SfxItemSet& /*rSet*/ )
m_pConfigItem->SetMailDisplayName(m_aDisplayNameED.GetText());
if(m_aAddressED.GetText() != m_aAddressED.GetSavedValue())
m_pConfigItem->SetMailAddress(m_aAddressED.GetText());
- String sReplyTo;
if( m_aReplyToCB.GetSavedValue() != m_aReplyToCB.IsChecked())
m_pConfigItem->SetMailReplyTo(m_aReplyToCB.IsChecked());
if(m_aReplyToED.GetText() != m_aReplyToED.GetSavedValue())
diff --git a/sw/source/ui/config/modcfg.cxx b/sw/source/ui/config/modcfg.cxx
index 7c468da99065..cc8a0aa81aa1 100644
--- a/sw/source/ui/config/modcfg.cxx
+++ b/sw/source/ui/config/modcfg.cxx
@@ -150,8 +150,6 @@ String SwModuleOptions::ConvertWordDelimiter(const String& rDelim, sal_Bool bFro
String sReturn;
if(bFromUI)
{
- String sChar;
-
xub_StrLen i = 0;
sal_Unicode c;
diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx
index 2cac4a23a9fd..70d3d8549097 100644
--- a/sw/source/ui/config/optpage.cxx
+++ b/sw/source/ui/config/optpage.cxx
@@ -661,11 +661,6 @@ sal_Bool SwStdFontTabPage::FillItemSet( SfxItemSet& )
String sList = aListBox .GetText();
String sLabel = aLabelBox .GetText();
String sIdx = aIdxBox .GetText();
- String sStandardBak = aStandardBox.GetSavedValue();
- String sTitleBak = aTitleBox .GetSavedValue();
- String sListBak = aListBox .GetSavedValue();
- String sLabelBak = aLabelBox .GetSavedValue();
- String sIdxBak = aIdxBox .GetSavedValue();
bool bStandardHeightChanged = aStandardHeightLB.GetSavedValue() != aStandardHeightLB.GetText();
bool bTitleHeightChanged = aTitleHeightLB.GetSavedValue() != aTitleHeightLB.GetText();
@@ -1962,7 +1957,6 @@ void SwRedlineOptionsTabPage::Reset( const SfxItemSet& )
InitFontStyle(aChangedPreviewWN);
// initialise colour list box
- String sColor;
aInsertColorLB.SetUpdateMode(sal_False);
aDeletedColorLB.SetUpdateMode(sal_False);
aChangedColorLB.SetUpdateMode(sal_False);
diff --git a/sw/source/ui/dbui/createaddresslistdialog.cxx b/sw/source/ui/dbui/createaddresslistdialog.cxx
index 0ffcd3b39a74..4205ea67353d 100644
--- a/sw/source/ui/dbui/createaddresslistdialog.cxx
+++ b/sw/source/ui/dbui/createaddresslistdialog.cxx
@@ -402,11 +402,9 @@ SwCreateAddressListDialog::SwCreateAddressListDialog(
pStream->SetLineDelimiter( LINEEND_LF );
pStream->SetStreamCharSet(RTL_TEXTENCODING_UTF8);
- OUString sSemi(';');
OUString sQuote('"');
String sTempMiddle(sQuote);
sTempMiddle += sal_Unicode(9);
- OUString sMiddle(sTempMiddle);
String sLine;
sal_Bool bRead = pStream->ReadByteStringLine( sLine, RTL_TEXTENCODING_UTF8 );
@@ -587,7 +585,6 @@ IMPL_LINK_NOARG(SwCreateAddressListDialog, OkHdl_Impl)
pStream->SetLineDelimiter( LINEEND_LF );
pStream->SetStreamCharSet(RTL_TEXTENCODING_UTF8);
- OUString sSemi(';');
OUString sQuote('"');
String sTempMiddle(sQuote);
sTempMiddle += sal_Unicode(9);
diff --git a/sw/source/ui/dbui/dbmgr.cxx b/sw/source/ui/dbui/dbmgr.cxx
index 88632385262e..aa80516b7beb 100644
--- a/sw/source/ui/dbui/dbmgr.cxx
+++ b/sw/source/ui/dbui/dbmgr.cxx
@@ -2252,7 +2252,6 @@ String SwNewDBMgr::LoadAndRegisterDataSource()
aURLAny <<= sDBURL;
//set the filter to the file name without extension
Sequence<rtl::OUString> aFilters(1);
- rtl::OUString sTmp(aURL.getBase());
aFilters[0] = aURL.getBase();
aTableFilterAny <<= aFilters;
}
@@ -2268,7 +2267,6 @@ String SwNewDBMgr::LoadAndRegisterDataSource()
bTextConnection = true;
//set the filter to the file name without extension
Sequence<rtl::OUString> aFilters(1);
- rtl::OUString sTmp(aURL.getBase());
aFilters[0] = aURL.getBase();
aTableFilterAny <<= aFilters;
}
diff --git a/sw/source/ui/dbui/mailmergechildwindow.cxx b/sw/source/ui/dbui/mailmergechildwindow.cxx
index b03cdde6f8b6..0abfa8fc8eb8 100644
--- a/sw/source/ui/dbui/mailmergechildwindow.cxx
+++ b/sw/source/ui/dbui/mailmergechildwindow.cxx
@@ -524,7 +524,6 @@ void SwSendMailDialog::SendMails()
OSL_FAIL("config item not set");
return;
}
- String sErrorMessage;
bool bIsLoggedIn = false;
EnterWait();
//get a mail server connection
diff --git a/sw/source/ui/dbui/mmconfigitem.cxx b/sw/source/ui/dbui/mmconfigitem.cxx
index f443a14f2c65..40a5e25ffa0e 100644
--- a/sw/source/ui/dbui/mmconfigitem.cxx
+++ b/sw/source/ui/dbui/mmconfigitem.cxx
@@ -305,7 +305,6 @@ SwMailMergeConfigItem_Impl::SwMailMergeConfigItem_Impl() :
Sequence< ::rtl::OUString > aAssignProperties(4 * aAssignments.getLength());
::rtl::OUString* pAssignProperties = aAssignProperties.getArray();
sal_Int32 nAssign;
- OUString sSlash = C2U("/");
for(nAssign = 0; nAssign < aAssignProperties.getLength(); nAssign += 4)
{
String sAssignPath = rtl::OUString::createFromAscii(cAddressDataAssignments);
diff --git a/sw/source/ui/dbui/mmoutputpage.cxx b/sw/source/ui/dbui/mmoutputpage.cxx
index 79fd3a6ef35f..f8ac2eace90e 100644
--- a/sw/source/ui/dbui/mmoutputpage.cxx
+++ b/sw/source/ui/dbui/mmoutputpage.cxx
@@ -767,7 +767,6 @@ IMPL_LINK(SwMailMergeOutputPage, SaveOutputHdl_Impl, PushButton*, pButton)
{
SwDocMergeInfo& rInfo = rConfigItem.GetDocumentMergeInfo(nDoc);
INetURLObject aURL(sPath);
- String sFile = aURL.GetBase();
String sExtension = aURL.getExtension();
if(!sExtension.Len())
{
diff --git a/sw/source/ui/dochdl/gloshdl.cxx b/sw/source/ui/dochdl/gloshdl.cxx
index 5672147f81b6..72c2c3c9a535 100644
--- a/sw/source/ui/dochdl/gloshdl.cxx
+++ b/sw/source/ui/dochdl/gloshdl.cxx
@@ -530,7 +530,6 @@ sal_Bool SwGlossaryHdl::Expand( const String& rShortName,
}
else
{
- String aLongName = pGlossary->GetLongName( nFound );
SvxMacro aStartMacro(aEmptyStr, aEmptyStr, STARBASIC);
SvxMacro aEndMacro(aEmptyStr, aEmptyStr, STARBASIC);
GetMacros( aShortName, aStartMacro, aEndMacro, pGlossary );
diff --git a/sw/source/ui/docvw/romenu.cxx b/sw/source/ui/docvw/romenu.cxx
index e0e519ab1ae9..5473a8cbfcfc 100644
--- a/sw/source/ui/docvw/romenu.cxx
+++ b/sw/source/ui/docvw/romenu.cxx
@@ -355,9 +355,7 @@ void SwReadOnlyPopup::Execute( Window* pWin, sal_uInt16 nId )
String SwReadOnlyPopup::SaveGraphic( sal_uInt16 nId )
{
-
// fish out the graphic's name
- String aName;
if ( MN_READONLY_SAVEBACKGROUND == nId )
{
if ( pItem->GetGraphicLink() )
diff --git a/sw/source/ui/fldui/flddok.cxx b/sw/source/ui/fldui/flddok.cxx
index 86ad74fbb074..46f90fe226d1 100644
--- a/sw/source/ui/fldui/flddok.cxx
+++ b/sw/source/ui/fldui/flddok.cxx
@@ -338,7 +338,6 @@ IMPL_LINK_NOARG(SwFldDokPage, TypeHdl)
{
sal_uInt16 nTmp = (sal_uInt16)(sal_uLong)aFormatLB.GetEntryData(
aFormatLB.GetSelectEntryPos() );
- String sOldTxt(aValueFT.GetText());
if(SVX_NUM_CHAR_SPECIAL != nTmp)
{
diff --git a/sw/source/ui/misc/glosbib.cxx b/sw/source/ui/misc/glosbib.cxx
index e210d44d3bdc..760bcfa4dafb 100644
--- a/sw/source/ui/misc/glosbib.cxx
+++ b/sw/source/ui/misc/glosbib.cxx
@@ -296,7 +296,6 @@ IMPL_LINK_NOARG(SwGlossaryGroupDlg, RenameHdl)
{
SvTreeListEntry* pEntry = aGroupTLB.FirstSelected();
GlosBibUserData* pUserData = (GlosBibUserData*)pEntry->GetUserData();
- String sEntryText(aGroupTLB.GetEntryText(pEntry));
String sEntry(pUserData->sGroupName);
String sNewName(aNameED.GetText());
diff --git a/sw/source/ui/misc/insrule.cxx b/sw/source/ui/misc/insrule.cxx
index 20a7af373853..86771ebc4fe5 100644
--- a/sw/source/ui/misc/insrule.cxx
+++ b/sw/source/ui/misc/insrule.cxx
@@ -55,7 +55,6 @@ SwInsertGrfRulerDlg::SwInsertGrfRulerDlg( Window* pParent )
// determine graphic name
GalleryExplorer::BeginLocking(GALLERY_THEME_RULERS);
GalleryExplorer::FillObjList(GALLERY_THEME_RULERS, m_aGrfNames);
- Color aColor(COL_WHITE);
m_pExampleVS->InsertItem(1, 1);
m_pExampleVS->SetItemText(1, m_sSimple);
diff --git a/sw/source/ui/misc/redlndlg.cxx b/sw/source/ui/misc/redlndlg.cxx
index 466dc82fc19e..dab9fadda8e7 100644
--- a/sw/source/ui/misc/redlndlg.cxx
+++ b/sw/source/ui/misc/redlndlg.cxx
@@ -136,7 +136,6 @@ void SwModelessRedlineAcceptDlg::Activate()
void SwModelessRedlineAcceptDlg::Initialize(SfxChildWinInfo *pInfo)
{
- String aStr;
if (pInfo != NULL)
pImplDlg->Initialize(pInfo->aExtraString);
@@ -282,12 +281,10 @@ void SwRedlineAcceptDlg::InitAuthors()
SvxTPFilter *pFilterPage = aTabPagesCTRL.GetFilterPage();
- String sAuthor;
std::vector<String> aStrings;
String sOldAuthor(pFilterPage->GetSelectedAuthor());
pFilterPage->ClearAuthors();
- String sParent;
sal_uInt16 nCount = pSh->GetRedlineCount();
bOnlyFormatedRedlines = sal_True;
diff --git a/sw/source/ui/shells/frmsh.cxx b/sw/source/ui/shells/frmsh.cxx
index 4d9ec90ac35c..b2d22d37eec0 100644
--- a/sw/source/ui/shells/frmsh.cxx
+++ b/sw/source/ui/shells/frmsh.cxx
@@ -779,7 +779,6 @@ void SwFrameShell::GetState(SfxItemSet& rSet)
break;
case SID_HYPERLINK_GETLINK:
{
- String sURL;
SvxHyperlinkItem aHLinkItem;
const SfxPoolItem* pItem;
diff --git a/sw/source/ui/shells/textfld.cxx b/sw/source/ui/shells/textfld.cxx
index 7bc67e64980e..eabfe3cbd879 100644
--- a/sw/source/ui/shells/textfld.cxx
+++ b/sw/source/ui/shells/textfld.cxx
@@ -208,7 +208,6 @@ void SwTextShell::ExecField(SfxRequest &rReq)
sal_uInt16 nType = 0;
String aPar1 = ((SfxStringItem *)pItem)->GetValue();
String aPar2;
- String aPar3;
sal_Int32 nCommand = 0;
if( SFX_ITEM_SET == pArgs->GetItemState( FN_PARAM_FIELD_TYPE,
diff --git a/sw/source/ui/table/tautofmt.cxx b/sw/source/ui/table/tautofmt.cxx
index cfcde7ec58bb..57648a513430 100644
--- a/sw/source/ui/table/tautofmt.cxx
+++ b/sw/source/ui/table/tautofmt.cxx
@@ -955,7 +955,6 @@ void AutoFmtPreview::DoPaint( const Rectangle& /*rRect*/ )
Bitmap thePreview;
Point aCenterPos;
Size theWndSize = GetSizePixel();
- Size thePrevSize;
Color oldColor;
Font aFont;
diff --git a/sw/source/ui/utlui/condedit.cxx b/sw/source/ui/utlui/condedit.cxx
index 512d029cf1bf..f435a721d9e9 100644
--- a/sw/source/ui/utlui/condedit.cxx
+++ b/sw/source/ui/utlui/condedit.cxx
@@ -62,7 +62,6 @@ sal_Int8 ConditionEdit::ExecuteDrop( const ExecuteDropEvent& rEvt )
sal_Int8 nRet = DND_ACTION_NONE;
if( bEnableDrop )
{
- String sTxt;
TransferableDataHelper aData( rEvt.maDropEvent.Transferable );
DataFlavorExVector& rVector = aData.GetDataFlavorExVector();
diff --git a/sw/source/ui/utlui/navipi.cxx b/sw/source/ui/utlui/navipi.cxx
index 70acc3da63ce..79d0f8324083 100644
--- a/sw/source/ui/utlui/navipi.cxx
+++ b/sw/source/ui/utlui/navipi.cxx
@@ -1345,13 +1345,12 @@ SwView* SwNavigationPI::GetCreateView() const
SwNavigationChild::SwNavigationChild( Window* pParent,
sal_uInt16 nId,
SfxBindings* _pBindings,
- SfxChildWinInfo* pInfo )
+ SfxChildWinInfo* )
: SfxChildWindowContext( nId )
{
SwNavigationPI* pNavi = new SwNavigationPI( _pBindings, this, pParent );
SetWindow( pNavi );
_pBindings->Invalidate(SID_NAVIGATOR);
- String sExtra = pInfo->aExtraString;
SwNavigationConfig* pNaviConfig = SW_MOD()->GetNavigationConfig();
diff --git a/sw/source/ui/vba/vbaselection.cxx b/sw/source/ui/vba/vbaselection.cxx
index 6913dd9c12e5..f6d7de52558d 100644
--- a/sw/source/ui/vba/vbaselection.cxx
+++ b/sw/source/ui/vba/vbaselection.cxx
@@ -570,7 +570,6 @@ uno::Reference< word::XRange > SAL_CALL SwVbaSelection::GoTo( const uno::Any& _w
{
case word::WdGoToItem::wdGoToBookmark:
{
- rtl::OUString sName;
uno::Reference< word::XApplication > xApplication( Application(), uno::UNO_QUERY_THROW );
uno::Reference< word::XBookmark > xBookmark( xApplication->getActiveDocument()->Bookmarks(_name), uno::UNO_QUERY_THROW );
xBookmark->Select();