sw/source/core/crsr/bookmrk.cxx               |    1 -
 sw/source/core/crsr/findtxt.cxx               |    1 -
 sw/source/core/doc/docedt.cxx                 |    6 +-----
 sw/source/core/doc/docnum.cxx                 |    2 --
 sw/source/core/draw/dflyobj.cxx               |    1 -
 sw/source/core/layout/pagechg.cxx             |    1 -
 sw/source/core/layout/wsfrm.cxx               |    1 -
 sw/source/core/unocore/unochart.cxx           |    6 ------
 sw/source/filter/html/htmlcss1.cxx            |    1 -
 sw/source/filter/html/htmlform.cxx            |    3 ---
 sw/source/filter/html/htmlftn.cxx             |    2 +-
 sw/source/filter/html/svxcss1.cxx             |    2 +-
 sw/source/filter/xml/xmltexti.cxx             |    1 -
 sw/source/ui/app/docsh.cxx                    |    2 --
 sw/source/ui/config/fontcfg.cxx               |    1 -
 sw/source/ui/config/mailconfigpage.cxx        |    1 -
 sw/source/ui/config/modcfg.cxx                |    2 --
 sw/source/ui/config/optpage.cxx               |    6 ------
 sw/source/ui/dbui/createaddresslistdialog.cxx |    3 ---
 sw/source/ui/dbui/dbmgr.cxx                   |    2 --
 sw/source/ui/dbui/mailmergechildwindow.cxx    |    1 -
 sw/source/ui/dbui/mmconfigitem.cxx            |    1 -
 sw/source/ui/dbui/mmoutputpage.cxx            |    1 -
 sw/source/ui/dochdl/gloshdl.cxx               |    1 -
 sw/source/ui/docvw/romenu.cxx                 |    2 --
 sw/source/ui/fldui/flddok.cxx                 |    1 -
 sw/source/ui/misc/glosbib.cxx                 |    1 -
 sw/source/ui/misc/insrule.cxx                 |    1 -
 sw/source/ui/misc/redlndlg.cxx                |    3 ---
 sw/source/ui/shells/frmsh.cxx                 |    1 -
 sw/source/ui/shells/textfld.cxx               |    1 -
 sw/source/ui/table/tautofmt.cxx               |    1 -
 sw/source/ui/utlui/condedit.cxx               |    1 -
 sw/source/ui/utlui/navipi.cxx                 |    3 +--
 sw/source/ui/vba/vbaselection.cxx             |    1 -
 35 files changed, 4 insertions(+), 61 deletions(-)

New commits:
commit c1200f5eeed0d1ce974dd551c330f72546317630
Author: Luboš Luňák <l.lu...@suse.cz>
Date:   Wed Nov 21 16:04:11 2012 +0100

    unused variables
    
    Change-Id: I216b6ddff479ecf45a9950c05d4d65d55afbc7a1

diff --git a/sw/source/core/crsr/bookmrk.cxx b/sw/source/core/crsr/bookmrk.cxx
index 75f58ca..fa209c9 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 76c843b..e9c40d7 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 9bd0196..dc6ae1d 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 0ae339d..475d8ca 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 d8bddbc..2db70e9 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 40b3b7a..e020077 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 b445f6f..7025c2b 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 6930e35..115d864 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 df4d50f..faf5436 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 1b7e776..c1c1323 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 ba20f94..756d218 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 c9925b4..e563431 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 f62fbe0..ab48030 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 fdf197c..e010ab6 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 f1e58c1..43b4a25 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 197259a..3d85a43 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 7c468da..cc8a0aa 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 2cac4a2..70d3d85 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 0ffcd3b..4205ea6 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 8863238..aa80516 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 b03cdde..0abfa8f 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 f443a14..40a5e25 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 79fd3a6..f8ac2ea 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 5672147..72c2c3c 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 e0e519a..5473a8c 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 86ad74f..46f90fe 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 e210d44..760bcfa 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 20a7af3..86771eb 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 466dc82..dab9fad 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 4d9ec90..b2d22d3 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 7bc67e6..eabfe3c 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 cfcde7e..57648a5 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 512d029..f435a72 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 70acc3d..79d0f83 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 6913dd9..f6d7de5 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();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to