diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-02-25 03:12:24 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-02-25 03:14:01 +0100 |
commit | 89003e9bd84634ac252c7cace5c7dfb53af1126d (patch) | |
tree | f0b18c53ac327db6cd0d9864fad80bf5699eec12 | |
parent | 405caad685edd0ba914789bda01b5dc9b3030773 (diff) |
loplugin: unused variables
Change-Id: I63553a09eec81e5ae28aa79ee1d3281053b23d06
34 files changed, 3 insertions, 48 deletions
diff --git a/desktop/source/deployment/manager/dp_informationprovider.cxx b/desktop/source/deployment/manager/dp_informationprovider.cxx index 3eff9fcc319f..90c75ee092b0 100644 --- a/desktop/source/deployment/manager/dp_informationprovider.cxx +++ b/desktop/source/deployment/manager/dp_informationprovider.cxx @@ -120,7 +120,6 @@ rtl::OUString PackageInformationProvider::getPackageLocation( { try { - const rtl::OUString aName = packages[ pos ]->getName(); const beans::Optional< rtl::OUString > aID = packages[ pos ]->getIdentifier(); if ( aID.IsPresent && aID.Value.compareTo( _rExtensionId ) == 0 ) { diff --git a/desktop/source/deployment/registry/help/dp_help.cxx b/desktop/source/deployment/registry/help/dp_help.cxx index 45083bdd5f3e..8c0146646f9c 100644 --- a/desktop/source/deployment/registry/help/dp_help.cxx +++ b/desktop/source/deployment/registry/help/dp_help.cxx @@ -393,7 +393,6 @@ void BackendImpl::implProcessHelp( Reference< ucb::XSimpleFileAccess3 > xSFA = getFileAccess(); rtl::OUString aHelpURL = xPackage->getURL(); rtl::OUString aExpandedHelpURL = dp_misc::expandUnoRcUrl( aHelpURL ); - rtl::OUString aName = xPackage->getName(); if( !xSFA->isFolder( aExpandedHelpURL ) ) { rtl::OUString aErrStr = getResourceString( RID_STR_HELPPROCESSING_GENERAL_ERROR ); 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; diff --git a/fileaccess/source/FileAccess.cxx b/fileaccess/source/FileAccess.cxx index 165b773b120e..88dfa361d173 100644 --- a/fileaccess/source/FileAccess.cxx +++ b/fileaccess/source/FileAccess.cxx @@ -366,7 +366,6 @@ void OFileAccess::createFolder( const rtl::OUString& NewFolderURL ) // SfxContentHelper::MakeFolder INetURLObject aURL( NewFolderURL, INET_PROT_FILE ); - String aNewFolderURLStr = aURL.GetMainURL( INetURLObject::NO_DECODE ); String aTitle = aURL.getName( INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_WITH_CHARSET ); if ( aTitle.Len() ) { diff --git a/filter/source/flash/swfwriter1.cxx b/filter/source/flash/swfwriter1.cxx index fd0b91e92df2..71fcec30b36d 100644 --- a/filter/source/flash/swfwriter1.cxx +++ b/filter/source/flash/swfwriter1.cxx @@ -1638,7 +1638,6 @@ void Writer::Impl_writeActions( const GDIMetaFile& rMtf ) { const MetaCommentAction* pA = (const MetaCommentAction*) pAction; const sal_uInt8* pData = pA->GetData(); - String aSkipComment; if( pA->GetComment().equalsIgnoreAsciiCase("XGRAD_SEQ_BEGIN") ) { diff --git a/filter/source/graphicfilter/eps/eps.cxx b/filter/source/graphicfilter/eps/eps.cxx index 58c56f526c0e..e75475240b02 100644 --- a/filter/source/graphicfilter/eps/eps.cxx +++ b/filter/source/graphicfilter/eps/eps.cxx @@ -2046,7 +2046,6 @@ void PSWriter::ImplText( const String& rUniString, const Point& rPos, const sal_ sal_Int16 nRotation = maFont.GetOrientation(); Polygon aPolyDummy( 1 ); - PolyPolygon aPolyPoly; Point aPos( rPos ); if ( nRotation ) { diff --git a/filter/source/svg/svgreader.cxx b/filter/source/svg/svgreader.cxx index 700b2cd05e0f..f39e303a1355 100644 --- a/filter/source/svg/svgreader.cxx +++ b/filter/source/svg/svgreader.cxx @@ -178,7 +178,6 @@ struct AnnotatingVisitor case XML_LINEARGRADIENT: { const sal_Int32 nNumAttrs( xAttributes->getLength() ); - rtl::OUString sAttributeValue; maGradientVector.push_back(Gradient(Gradient::LINEAR)); // do we have a reference to a parent gradient? parse @@ -216,7 +215,6 @@ struct AnnotatingVisitor case XML_RADIALGRADIENT: { const sal_Int32 nNumAttrs( xAttributes->getLength() ); - rtl::OUString sAttributeValue; maGradientVector.push_back(Gradient(Gradient::RADIAL)); // do we have a reference to a parent gradient? parse @@ -254,7 +252,6 @@ struct AnnotatingVisitor case XML_STOP: { const sal_Int32 nNumAttrs( xAttributes->getLength() ); - rtl::OUString sAttributeValue; maGradientStopVector.push_back(GradientStop()); maGradientVector.back().maStops.push_back(maGradientStopVector.size()-1); for( sal_Int32 i=0; i<nNumAttrs; ++i ) @@ -1627,7 +1624,6 @@ struct ShapeWritingVisitor const basegfx::B2DEllipse& rEllipse) { State aState = maCurrState; - rtl::OUString aStyleId(rStyleId); xAttrs->Clear(); diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx index 61f10678520e..243d511079ea 100644 --- a/filter/source/svg/svgwriter.cxx +++ b/filter/source/svg/svgwriter.cxx @@ -316,7 +316,7 @@ void SVGAttributeWriter::SetFontAttr( const Font& rFont ) { if( rFont != maCurFont ) { - ::rtl::OUString aFontStyle, aFontWeight, aTextDecoration; + ::rtl::OUString aFontStyle, aTextDecoration; sal_Int32 nFontWeight; maCurFont = rFont; @@ -3222,7 +3222,6 @@ void SVGActionWriter::ImplWriteActions( const GDIMetaFile& rMtf, case( META_COMMENT_ACTION ): { const MetaCommentAction* pA = (const MetaCommentAction*) pAction; - String aSkipComment; if( ( pA->GetComment().equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("XGRAD_SEQ_BEGIN")) ) && ( nWriteFlags & SVGWRITER_WRITE_FILL ) ) diff --git a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx index a2bf034486f9..4e387b9397f9 100644 --- a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx +++ b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx @@ -726,7 +726,6 @@ bool XMLFilterSettingsDialog::insertOrEdit( filter_info_impl* pNewInfo, const fi sal_Int32 nStr; for( nStr = 0; nStr < nStrCount; nStr++ ) { - OUString aType( aTypes[nStr] ); if( aTypes[nStr] == pFilterEntry->maType ) break; } diff --git a/filter/source/xsltdialog/xmlfiltertestdialog.cxx b/filter/source/xsltdialog/xmlfiltertestdialog.cxx index 45742df584e3..98732a433553 100644 --- a/filter/source/xsltdialog/xmlfiltertestdialog.cxx +++ b/filter/source/xsltdialog/xmlfiltertestdialog.cxx @@ -267,7 +267,6 @@ void XMLFilterTestDialog::initDialog() aTitle.SearchAndReplace( String( RTL_CONSTASCII_USTRINGPARAM("%s") ), m_pFilterInfo->maFilterName ); SetText( aTitle ); - String aEmpty; bool bImport = (m_pFilterInfo->maFlags & 1) == 1; bool bExport = (m_pFilterInfo->maFlags & 2) == 2; diff --git a/filter/source/xsltfilter/XSLTFilter.cxx b/filter/source/xsltfilter/XSLTFilter.cxx index 2b7727449760..2764a37e1ca2 100644 --- a/filter/source/xsltfilter/XSLTFilter.cxx +++ b/filter/source/xsltfilter/XSLTFilter.cxx @@ -282,7 +282,6 @@ m_rServiceFactory(r), m_bTerminated(sal_False), m_bError(sal_False) if (msUserData.getLength() < 5) return sal_False; - OUString udImport = msUserData[2]; OUString udStyleSheet = rel2abs(msUserData[4]); // get information from media descriptor @@ -425,7 +424,6 @@ m_rServiceFactory(r), m_bTerminated(sal_False), m_bError(sal_False) return sal_False; // get interesting values from user data - OUString udImport = msUserData[2]; OUString udStyleSheet = rel2abs(msUserData[5]); // read source data diff --git a/formula/source/ui/dlg/formula.cxx b/formula/source/ui/dlg/formula.cxx index e6f890d0363d..8ae904b2c07b 100644 --- a/formula/source/ui/dlg/formula.cxx +++ b/formula/source/ui/dlg/formula.cxx @@ -1313,7 +1313,6 @@ IMPL_LINK_NOARG(FormulaDlg_Impl, FormulaCursorHdl) bEditFlag=sal_True; - String aInputFormula=m_pHelper->getCurrentFormula(); String aString=pMEdit->GetText(); Selection aSel =pMEdit->GetSelection(); diff --git a/fpicker/source/office/OfficeFilePicker.cxx b/fpicker/source/office/OfficeFilePicker.cxx index 81071c2453a7..b9bbe02b4f8c 100644 --- a/fpicker/source/office/OfficeFilePicker.cxx +++ b/fpicker/source/office/OfficeFilePicker.cxx @@ -165,7 +165,6 @@ void SvtFilePicker::prepareExecute() aPath.insertName( m_aDefaultName ); getDialog()->SetHasFilename( true ); } - String sPath = aPath.GetMainURL( INetURLObject::NO_DECODE ); getDialog()->SetPath( aPath.GetMainURL( INetURLObject::NO_DECODE ) ); } else if ( !m_aDefaultName.isEmpty() ) diff --git a/framework/source/accelerators/acceleratorconfiguration.cxx b/framework/source/accelerators/acceleratorconfiguration.cxx index 0f45b264119b..5df1ab22ff33 100644 --- a/framework/source/accelerators/acceleratorconfiguration.cxx +++ b/framework/source/accelerators/acceleratorconfiguration.cxx @@ -1326,7 +1326,6 @@ void XCUBasedAcceleratorConfiguration::impl_ts_load( sal_Bool bPreferred, const break; sToken[k] = sKey.getToken(0, '_', nIndex); - ::rtl::OUString sTest = sToken[k]; if (sToken[k].isEmpty()) { bValid = sal_False; diff --git a/framework/source/fwe/classes/addonsoptions.cxx b/framework/source/fwe/classes/addonsoptions.cxx index 077c3a3f90c7..09d075e4d337 100644 --- a/framework/source/fwe/classes/addonsoptions.cxx +++ b/framework/source/fwe/classes/addonsoptions.cxx @@ -887,7 +887,6 @@ sal_Bool AddonsOptions_Impl::ReadMenuMergeInstructions( MergeMenuInstructionCont // Init the property value sequence Sequence< ::rtl::OUString > aNodePropNames( 5 ); - ::rtl::OUString aURL; for ( sal_uInt32 i = 0; i < nCount; i++ ) { @@ -974,7 +973,6 @@ sal_Bool AddonsOptions_Impl::ReadToolbarMergeInstructions( ToolbarMergingInstruc // Init the property value sequence Sequence< ::rtl::OUString > aNodePropNames( 6 ); - ::rtl::OUString aURL; for ( sal_uInt32 i = 0; i < nCount; i++ ) { diff --git a/framework/source/services/license.cxx b/framework/source/services/license.cxx index 82594b6a91a2..6d948742f2fb 100644 --- a/framework/source/services/license.cxx +++ b/framework/source/services/license.cxx @@ -199,7 +199,6 @@ static sal_Bool _parseDateTime(const ::rtl::OUString& aString, DateTime& aDateTi static ::rtl::OUString _getCurrentDateString() { - ::rtl::OUString aString; return _makeDateTimeString(DateTime( DateTime::SYSTEM)); } diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx index cf529fab137f..db99cdbb98f2 100644 --- a/framework/source/uielement/toolbarmanager.cxx +++ b/framework/source/uielement/toolbarmanager.cxx @@ -1505,8 +1505,6 @@ void ToolBarManager::RequestImages() pIter = m_aCommandMap.begin(); while ( pIter != pEnd ) { - rtl::OUString aCommandURL = aCmdURLSeq[i]; - Image aImage; if ( aDocGraphicSeq.getLength() > 0 ) aImage = Image( aDocGraphicSeq[i] ); diff --git a/l10ntools/source/helpmerge.cxx b/l10ntools/source/helpmerge.cxx index 3612f1fbd14d..78c7ed10fe69 100644 --- a/l10ntools/source/helpmerge.cxx +++ b/l10ntools/source/helpmerge.cxx @@ -234,7 +234,6 @@ void HelpParser::ProcessHelp( LangHashMap* aLangHM , const rtl::OString& sCur , PFormEntrys *pEntrys = NULL; rtl::OString sLId; - rtl::OString sGId; pEntrys = NULL; diff --git a/l10ntools/source/xmlparse.cxx b/l10ntools/source/xmlparse.cxx index b9e9ff37c59f..b44e29bebb75 100644 --- a/l10ntools/source/xmlparse.cxx +++ b/l10ntools/source/xmlparse.cxx @@ -349,7 +349,7 @@ void XMLFile::Extract( XMLFile *pCur ) /*****************************************************************************/ void XMLFile::InsertL10NElement( XMLElement* pElement ){ /*****************************************************************************/ - rtl::OString tmpStr,id,oldref,language(""); + rtl::OString tmpStr,id,language(""); LangHashMap* elem; if( pElement->GetAttributeList() != NULL ){ @@ -509,7 +509,6 @@ bool XMLFile::CheckExportStatus( XMLParentNode *pCur ) /*****************************************************************************/ { static bool bStatusExport = true; - const rtl::OString LOCALIZE("localize"); const rtl::OString STATUS(RTL_CONSTASCII_STRINGPARAM("status")); const rtl::OString PUBLISH(RTL_CONSTASCII_STRINGPARAM("PUBLISH")); const rtl::OString DEPRECATED(RTL_CONSTASCII_STRINGPARAM("DEPRECATED")); diff --git a/lotuswordpro/source/filter/lwpfilter.cxx b/lotuswordpro/source/filter/lwpfilter.cxx index 906008925d24..852e34ab656d 100644 --- a/lotuswordpro/source/filter/lwpfilter.cxx +++ b/lotuswordpro/source/filter/lwpfilter.cxx @@ -262,7 +262,6 @@ Sequence< OUString> LWPFilterImportFilter::getSupportedServiceNames( void ) thro else if ( aDescriptor[i].Name == "URL" ) { OUString sURL; - OUString sFileName; aDescriptor[i].Value >>= sURL; /* diff --git a/scripting/source/dlgprov/dlgevtatt.cxx b/scripting/source/dlgprov/dlgevtatt.cxx index 40147caf284f..385fef045f38 100644 --- a/scripting/source/dlgprov/dlgevtatt.cxx +++ b/scripting/source/dlgprov/dlgevtatt.cxx @@ -554,7 +554,6 @@ namespace dlgprov { static ::rtl::OUString sUnoURLScheme("vnd.sun.star.UNO:"); - ::rtl::OUString sScriptCode( aScriptEvent.ScriptCode ); ::rtl::OUString aMethodName = aScriptEvent.ScriptCode.copy( sUnoURLScheme.getLength() ); const Any* pArguments = aScriptEvent.Arguments.getConstArray(); diff --git a/sfx2/source/appl/appcfg.cxx b/sfx2/source/appl/appcfg.cxx index db94288714e9..11441cd3b651 100644 --- a/sfx2/source/appl/appcfg.cxx +++ b/sfx2/source/appl/appcfg.cxx @@ -512,7 +512,6 @@ void SfxApplication::SetOptions_Impl( const SfxItemSet& rSet ) SvtSaveOptions aSaveOptions; SvtHelpOptions aHelpOptions; SvtSecurityOptions aSecurityOptions; - SvtPathOptions aPathOptions; SvtMiscOptions aMiscOptions; boost::shared_ptr< comphelper::ConfigurationChanges > batch( comphelper::ConfigurationChanges::create()); diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx index 4187f67017c7..066de34dd46b 100644 --- a/sfx2/source/appl/newhelp.cxx +++ b/sfx2/source/appl/newhelp.cxx @@ -300,7 +300,6 @@ ContentListBox_Impl::~ContentListBox_Impl() SvTreeListEntry* pEntry = GetEntry( nPos++ ); while ( pEntry ) { - ::rtl::OUString aTemp( GetEntryText( pEntry ) ); ClearChildren( pEntry ); delete (ContentEntry_Impl*)pEntry->GetUserData(); pEntry = GetEntry( nPos++ ); @@ -339,7 +338,6 @@ void ContentListBox_Impl::ClearChildren( SvTreeListEntry* pParent ) SvTreeListEntry* pEntry = FirstChild( pParent ); while ( pEntry ) { - ::rtl::OUString aTemp( GetEntryText( pEntry ) ); ClearChildren( pEntry ); delete (ContentEntry_Impl*)pEntry->GetUserData(); pEntry = NextSibling( pEntry ); diff --git a/sfx2/source/appl/shutdowniconunx.cxx b/sfx2/source/appl/shutdowniconunx.cxx index 7a89ed881df8..42f0c3853553 100644 --- a/sfx2/source/appl/shutdowniconunx.cxx +++ b/sfx2/source/appl/shutdowniconunx.cxx @@ -275,7 +275,6 @@ static void populate_menu( GtkWidget *pMenu ) add_item (pMenuShell, "dummy", &aULabel, SV_ICON_ID_TEMPLATE, G_CALLBACK( open_template_cb )); - OString aLabel; GtkWidget *pMenuItem; pMenuItem = gtk_separator_menu_item_new(); diff --git a/sfx2/source/bastyp/fltfnc.cxx b/sfx2/source/bastyp/fltfnc.cxx index 97dbaec47ab6..bc102314d2bc 100644 --- a/sfx2/source/bastyp/fltfnc.cxx +++ b/sfx2/source/bastyp/fltfnc.cxx @@ -199,7 +199,6 @@ const SfxFilter* SfxFilterContainer::GetDefaultFilter_Impl( const String& rName // For the following code we need some additional informations. String sServiceName = aOpt.GetFactoryName(eFactory); - String sShortName = aOpt.GetFactoryShortName(eFactory); String sDefaultFilter = aOpt.GetFactoryDefaultFilter(eFactory); // Try to get the default filter. Dont fiorget to verify it. diff --git a/sfx2/source/bastyp/sfxhtml.cxx b/sfx2/source/bastyp/sfxhtml.cxx index a71fa4adeee2..4fa1288f62cd 100644 --- a/sfx2/source/bastyp/sfxhtml.cxx +++ b/sfx2/source/bastyp/sfxhtml.cxx @@ -236,8 +236,6 @@ void SfxHTMLParser::StartFileDownload(const OUString& rURL) sal_Bool SfxHTMLParser::FinishFileDownload( String& rStr ) { - String aStr; - sal_Bool bOK = pDLMedium && pDLMedium->GetErrorCode()==0; if( bOK ) { diff --git a/sfx2/source/dialog/filtergrouping.cxx b/sfx2/source/dialog/filtergrouping.cxx index 46700f1c1f46..7add2fc0f180 100644 --- a/sfx2/source/dialog/filtergrouping.cxx +++ b/sfx2/source/dialog/filtergrouping.cxx @@ -764,7 +764,6 @@ namespace sfx2 //-------------------------------------------------------------------- sal_Bool lcl_hasAllFilesFilter( TSortedFilterList& _rFilterMatcher, String& /* [out] */ _rAllFilterName ) { - ::rtl::OUString sUIName; sal_Bool bHasAll = sal_False; _rAllFilterName = SfxResId( STR_SFX_FILTERNAME_ALL ).toString(); @@ -1001,7 +1000,6 @@ namespace sfx2 sUIName = pFilter->GetUIName(); sExtensions = pFilter->GetWildcard().getGlob(); ExportFilter aExportFilter( sUIName, sExtensions ); - String aExt = sExtensions; if ( nHTMLIndex == -1 && ( sTypeName.equals( sWriterHTMLType ) || sTypeName.equals( sGraphicHTMLType ) ) ) diff --git a/sfx2/source/doc/graphhelp.cxx b/sfx2/source/doc/graphhelp.cxx index cd6225c674d6..40c6385fd2c7 100644 --- a/sfx2/source/doc/graphhelp.cxx +++ b/sfx2/source/doc/graphhelp.cxx @@ -292,7 +292,6 @@ sal_Bool GraphicHelper::createThumb_Impl( const GDIMetaFile& rMtf, const Point aBRPix( aVDev.LogicToPixel( Point( rMtf.GetPrefSize().Width() - 1, rMtf.GetPrefSize().Height() - 1 ), rMtf.GetPrefMapMode() ) ); Size aDrawSize( aVDev.LogicToPixel( rMtf.GetPrefSize(), rMtf.GetPrefMapMode() ) ); Size aSizePix( labs( aBRPix.X() - aTLPix.X() ) + 1, labs( aBRPix.Y() - aTLPix.Y() ) + 1 ); - Point aPosPix; if ( !rBmpEx.IsEmpty() ) rBmpEx.SetEmpty(); diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index cb7d3ae035da..525da28f73be 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -3443,7 +3443,6 @@ sal_Bool SfxBaseModel::hasValidSignatures() const static void GetCommandFromSequence( rtl::OUString& rCommand, sal_Int32& nIndex, const uno::Sequence< beans::PropertyValue >& rSeqPropValue ) { - rtl::OUString aCommand; nIndex = -1; for ( sal_Int32 i = 0; i < rSeqPropValue.getLength(); i++ ) diff --git a/sfx2/source/view/frame.cxx b/sfx2/source/view/frame.cxx index 5b8bf1a7ff0a..071312aefaad 100644 --- a/sfx2/source/view/frame.cxx +++ b/sfx2/source/view/frame.cxx @@ -414,7 +414,6 @@ void SfxFrame::UpdateDescriptor( SfxObjectShell *pDoc ) // Mark FileOpen parameter SfxItemSet* pItemSet = pMed->GetItemSet(); - String aMedName( pMed->GetName() ); const SfxFilter* pFilter = pMed->GetOrigFilter(); String aFilter; |