[Libreoffice-commits] core.git: 4 commits - basctl/inc basctl/source basegfx/source basic/source chart2/source codemaker/source connectivity/source cppcanvas/source dbaccess/source desktop/source editeng/source fileaccess/source filter/source formula/source fpicker/source framework/source l10ntools/source lotuswordpro/source scripting/source sfx2/source
Thomas Arnhold
thomas at arnhold.org
Sun Feb 24 18:14:36 PST 2013
basctl/inc/basidesh.hrc | 1
basctl/source/basicide/baside2.cxx | 12 -----------
basctl/source/basicide/baside2b.cxx | 3 --
basctl/source/basicide/basidesh.src | 4 ---
basegfx/source/polygon/b2dsvgpolypolygon.cxx | 2 -
basic/source/basmgr/basicmanagerrepository.cxx | 2 -
basic/source/basmgr/basmgr.cxx | 4 ---
basic/source/classes/eventatt.cxx | 1
basic/source/runtime/methods.cxx | 1
basic/source/sbx/sbxscan.cxx | 2 -
chart2/source/tools/RegressionCurveHelper.cxx | 1
chart2/source/view/main/ShapeFactory.cxx | 1
codemaker/source/cppumaker/cpputype.cxx | 2 -
connectivity/source/commontools/parameters.cxx | 1
connectivity/source/drivers/file/FConnection.cxx | 2 -
connectivity/source/drivers/file/FDateFunctions.cxx | 1
connectivity/source/drivers/file/FStatement.cxx | 1
connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx | 4 ---
connectivity/source/drivers/mysql/YViews.cxx | 2 -
connectivity/source/drivers/postgresql/pq_connection.cxx | 1
connectivity/source/parse/sqliterator.cxx | 4 ---
cppcanvas/source/mtfrenderer/mtftools.cxx | 2 -
dbaccess/source/core/api/CacheSet.cxx | 4 ---
dbaccess/source/core/api/KeySet.cxx | 2 -
dbaccess/source/core/api/OptimisticSet.cxx | 5 ----
dbaccess/source/core/dataaccess/bookmarkcontainer.cxx | 3 --
dbaccess/source/ui/app/AppControllerDnD.cxx | 3 --
dbaccess/source/ui/app/AppDetailPageHelper.cxx | 1
dbaccess/source/ui/browser/brwctrlr.cxx | 2 -
dbaccess/source/ui/control/SqlNameEdit.cxx | 8 ++-----
dbaccess/source/ui/control/marktree.cxx | 6 -----
dbaccess/source/ui/dlg/DbAdminImpl.cxx | 11 ----------
dbaccess/source/ui/dlg/dbwizsetup.cxx | 2 -
dbaccess/source/ui/dlg/paramdialog.cxx | 2 -
dbaccess/source/ui/dlg/tablespage.cxx | 1
dbaccess/source/ui/inc/SqlNameEdit.hxx | 2 -
dbaccess/source/ui/misc/UITools.cxx | 6 -----
dbaccess/source/ui/misc/WColumnSelect.cxx | 2 -
dbaccess/source/ui/misc/WCopyTable.cxx | 4 ---
dbaccess/source/ui/misc/WTypeSelect.cxx | 1
dbaccess/source/ui/querydesign/QueryDesignView.cxx | 1
dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx | 3 --
dbaccess/source/ui/tabledesign/TEditControl.cxx | 1
dbaccess/source/ui/tabledesign/TableController.cxx | 1
desktop/source/deployment/manager/dp_informationprovider.cxx | 1
desktop/source/deployment/registry/help/dp_help.cxx | 1
editeng/source/editeng/impedit2.cxx | 1
editeng/source/editeng/impedit3.cxx | 1
editeng/source/editeng/impedit4.cxx | 2 -
editeng/source/editeng/textconv.cxx | 1
editeng/source/misc/svxacorr.cxx | 4 ---
fileaccess/source/FileAccess.cxx | 1
filter/source/flash/swfwriter1.cxx | 1
filter/source/graphicfilter/eps/eps.cxx | 1
filter/source/svg/svgreader.cxx | 4 ---
filter/source/svg/svgwriter.cxx | 3 --
filter/source/xsltdialog/xmlfiltersettingsdialog.cxx | 1
filter/source/xsltdialog/xmlfiltertestdialog.cxx | 1
filter/source/xsltfilter/XSLTFilter.cxx | 2 -
formula/source/ui/dlg/formula.cxx | 1
fpicker/source/office/OfficeFilePicker.cxx | 1
framework/source/accelerators/acceleratorconfiguration.cxx | 1
framework/source/fwe/classes/addonsoptions.cxx | 2 -
framework/source/services/license.cxx | 1
framework/source/uielement/toolbarmanager.cxx | 2 -
l10ntools/source/helpmerge.cxx | 1
l10ntools/source/xmlparse.cxx | 3 --
lotuswordpro/source/filter/lwpfilter.cxx | 1
scripting/source/dlgprov/dlgevtatt.cxx | 1
sfx2/source/appl/appcfg.cxx | 1
sfx2/source/appl/newhelp.cxx | 2 -
sfx2/source/appl/shutdowniconunx.cxx | 1
sfx2/source/bastyp/fltfnc.cxx | 1
sfx2/source/bastyp/sfxhtml.cxx | 2 -
sfx2/source/dialog/filtergrouping.cxx | 2 -
sfx2/source/doc/graphhelp.cxx | 1
sfx2/source/doc/sfxbasemodel.cxx | 1
sfx2/source/view/frame.cxx | 1
78 files changed, 11 insertions(+), 165 deletions(-)
New commits:
commit 89003e9bd84634ac252c7cace5c7dfb53af1126d
Author: Thomas Arnhold <thomas at arnhold.org>
Date: Mon Feb 25 03:12:24 2013 +0100
loplugin: unused variables
Change-Id: I63553a09eec81e5ae28aa79ee1d3281053b23d06
diff --git a/desktop/source/deployment/manager/dp_informationprovider.cxx b/desktop/source/deployment/manager/dp_informationprovider.cxx
index 3eff9fc..90c75ee 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 45083bd..8c01466 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 a6d6dda..8129570 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 445d711..9860c84 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 7d34c14..8298875 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 d8527cb..1431894 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 870d00b..d56021b 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 165b773..88dfa36 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 fd0b91e..71fcec3 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 58c56f5..e754752 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 700b2cd..f39e303 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 61f1067..243d511 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 a2bf034..4e387b9 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 45742df..98732a4 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 2b77274..2764a37 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 e6f890d..8ae904b 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 81071c2..b9bbe02 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 0f45b26..5df1ab2 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 077c3a3..09d075e 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 82594b6..6d94874 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 cf529fa..db99cdb 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 3612f1f..78c7ed1 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 b9e9ff3..b44e29b 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 9060089..852e34a 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 40147ca..385fef0 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 db94288..11441cd 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 4187f67..066de34 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 7a89ed8..42f0c38 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 97dbaec..bc10231 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 a71fa4a..4fa1288f 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 46700f1..7add2fc 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 cd6225c..40c6385 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 cb7d3ae..525da28 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 5b8bf1a..071312a 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;
commit 405caad685edd0ba914789bda01b5dc9b3030773
Author: Thomas Arnhold <thomas at arnhold.org>
Date: Mon Feb 25 02:17:44 2013 +0100
loplugin: unused variables
Change-Id: I46a748bf2c54d15c0f5718901197f3b4c34b82bf
diff --git a/basegfx/source/polygon/b2dsvgpolypolygon.cxx b/basegfx/source/polygon/b2dsvgpolypolygon.cxx
index b731543..651400d 100644
--- a/basegfx/source/polygon/b2dsvgpolypolygon.cxx
+++ b/basegfx/source/polygon/b2dsvgpolypolygon.cxx
@@ -620,8 +620,6 @@ namespace basegfx
nY += nLastY;
}
- const B2DPoint aPrevPoint(aCurrPoly.getB2DPoint(aCurrPoly.count() - 1));
-
if( nX == nLastX && nY == nLastY )
continue; // start==end -> skip according to SVG spec
diff --git a/basic/source/basmgr/basicmanagerrepository.cxx b/basic/source/basmgr/basicmanagerrepository.cxx
index 4f8fd9e..59e6ee2 100644
--- a/basic/source/basmgr/basicmanagerrepository.cxx
+++ b/basic/source/basmgr/basicmanagerrepository.cxx
@@ -293,8 +293,6 @@ namespace basic
{
aPathCFG.SetBasicPath(OUString("$(prog)"));
}
- // soffice.new search only in user dir => first dir
- OUString aAppFirstBasicDir = aAppBasicDir.getToken(1, ';');
// Create basic and load it
// AppBasicDir is now a PATH
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx
index 961b5ed..046376c 100644
--- a/basic/source/basmgr/basmgr.cxx
+++ b/basic/source/basmgr/basmgr.cxx
@@ -706,8 +706,6 @@ void BasicManager::SetLibraryContainerInfo( const LibraryContainerInfo& rInfo )
mpImpl->maContainerInfo = rInfo;
uno::Reference< script::XLibraryContainer > xScriptCont( mpImpl->maContainerInfo.mxScriptCont.get() );
- StarBASIC* pStdLib = GetStdLib();
- OUString aLibName = pStdLib->GetName();
if( xScriptCont.is() )
{
// Register listener for lib container
@@ -1367,7 +1365,7 @@ sal_Bool BasicManager::RemoveLib( sal_uInt16 nLib, sal_Bool bDelBasicFromStorage
xStorage->FillInfoList( &aInfoList );
if ( aInfoList.empty() )
{
- OUString aName_( xStorage->GetName() );
+ //OUString aName_( xStorage->GetName() );
xStorage.Clear();
//*** TODO: Replace if still necessary
//SfxContentHelper::Kill( aName );
diff --git a/basic/source/classes/eventatt.cxx b/basic/source/classes/eventatt.cxx
index 7eb79f3..da7d5d4 100644
--- a/basic/source/classes/eventatt.cxx
+++ b/basic/source/classes/eventatt.cxx
@@ -215,7 +215,6 @@ void BasicScriptListener_Impl::firing_impl( const ScriptEvent& aScriptEvent, Any
aLibName = aFullLibName.copy( nIndex + 1 );
}
- OUString aModul = aMacro.getToken( (sal_Int32)0, (sal_Unicode)'.', nLast );
aMacro = aMacro.copy( nLast );
}
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index af2f021..5f4ea93 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -4162,7 +4162,6 @@ RTLFUNC(StrConv)
}
else if ( (nConversion & 0x80) == 128 ) // vbFromUnicode
{
- OUString aOUStr(aNewStr);
// there is no concept about default codepage in unix. so it is incorrectly in unix
OString aOStr = OUStringToOString(aNewStr,osl_getThreadTextEncoding());
const sal_Char* pChar = aOStr.getStr();
diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx
index d6e55d3..f9784e4 100644
--- a/basic/source/sbx/sbxscan.cxx
+++ b/basic/source/sbx/sbxscan.cxx
@@ -410,8 +410,6 @@ bool ImpConvStringExt( OUString& rSrc, SbxDataType eTargetType )
case SbxDOUBLE:
case SbxCURRENCY:
{
- OString aBStr( OUStringToOString( rSrc, RTL_TEXTENCODING_ASCII_US ) );
-
sal_Unicode cDecimalSep, cThousandSep;
ImpGetIntntlSep( cDecimalSep, cThousandSep );
aNewString = rSrc;
diff --git a/chart2/source/tools/RegressionCurveHelper.cxx b/chart2/source/tools/RegressionCurveHelper.cxx
index 81941a6..4c346c6 100644
--- a/chart2/source/tools/RegressionCurveHelper.cxx
+++ b/chart2/source/tools/RegressionCurveHelper.cxx
@@ -482,7 +482,6 @@ uno::Reference< chart2::XRegressionCurve > RegressionCurveHelper::getFirstCurveN
{
uno::Sequence< uno::Reference< chart2::XRegressionCurve > > aCurves(
xRegCnt->getRegressionCurves());
- ::std::vector< uno::Reference< chart2::XRegressionCurve > > aCurvesToDelete;
for( sal_Int32 i = 0; i < aCurves.getLength(); ++i )
{
if( ! isMeanValueLine( aCurves[i] ))
diff --git a/chart2/source/view/main/ShapeFactory.cxx b/chart2/source/view/main/ShapeFactory.cxx
index 739ce75..3a5c309 100644
--- a/chart2/source/view/main/ShapeFactory.cxx
+++ b/chart2/source/view/main/ShapeFactory.cxx
@@ -851,7 +851,6 @@ drawing::PolyPolygonBezierCoords getCircularArcBezierCoords(
//!! applying matrix to vector does ignore translation, so it is important to use a B2DPoint here instead of B2DVector
::basegfx::B2DPoint P0,P1,P2,P3;
- ::basegfx::B2DPoint POrigin = rTransformationFromUnitCircle * ::basegfx::B2DPoint(0.0, 0.0);
sal_Int32 nPoint=0;
double fCurrentRotateAngle = fStartAngleRadian;
diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx
index 2c4d808..641408e 100644
--- a/codemaker/source/cppumaker/cpputype.cxx
+++ b/codemaker/source/cppumaker/cpputype.cxx
@@ -629,7 +629,6 @@ void CppuType::dumpNormalGetCppuType(FileStream& o)
sal_uInt16 fieldCount = m_reader.getFieldCount();
RTFieldAccess access = RT_ACCESS_INVALID;
OString fieldType, fieldName;
- OString scope = m_typeName.replace('/', '.');
OString modFieldType;
StringSet generatedTypeSet;
StringSet::iterator findIter;
@@ -745,7 +744,6 @@ void CppuType::dumpComprehensiveGetCppuType(FileStream& o)
sal_uInt16 fieldCount = m_reader.getFieldCount();
RTFieldAccess access = RT_ACCESS_INVALID;
OString fieldType, fieldName;
- OString scope = m_typeName.replace('/', '.');
for (sal_uInt16 i=0; i < fieldCount; i++)
{
access = m_reader.getFieldFlags(i);
diff --git a/connectivity/source/commontools/parameters.cxx b/connectivity/source/commontools/parameters.cxx
index ef83e56..4452269 100644
--- a/connectivity/source/commontools/parameters.cxx
+++ b/connectivity/source/commontools/parameters.cxx
@@ -422,7 +422,6 @@ namespace dbtools
sal_Int32 nSmallestIndexLinkedByColumnName = -1;
sal_Int32 nLargestIndexNotLinkedByColumnName = -1;
#endif
- ::rtl::OUString sName;
for ( ParameterInformation::iterator aParam = m_aParameterInformation.begin();
aParam != m_aParameterInformation.end();
++aParam
diff --git a/connectivity/source/drivers/file/FConnection.cxx b/connectivity/source/drivers/file/FConnection.cxx
index 5f0beab..0683af9 100644
--- a/connectivity/source/drivers/file/FConnection.cxx
+++ b/connectivity/source/drivers/file/FConnection.cxx
@@ -130,7 +130,7 @@ void OConnection::construct(const ::rtl::OUString& url,const Sequence< PropertyV
{
sal_Int32 nLen = url.indexOf(':');
nLen = url.indexOf(':',nLen+1);
- ::rtl::OUString aDSN(url.copy(nLen+1)),aUID,aPWD;
+ ::rtl::OUString aDSN(url.copy(nLen+1));
String aFileName = aDSN;
INetURLObject aURL;
diff --git a/connectivity/source/drivers/file/FDateFunctions.cxx b/connectivity/source/drivers/file/FDateFunctions.cxx
index e45228a..b9a20b1 100644
--- a/connectivity/source/drivers/file/FDateFunctions.cxx
+++ b/connectivity/source/drivers/file/FDateFunctions.cxx
@@ -186,7 +186,6 @@ ORowSetValue OOp_Quarter::operate(const ORowSetValue& lhs) const
sal_Int32 nRet = 1;
::com::sun::star::util::Date aD = lhs;
- Date aDate(aD.Day,aD.Month,aD.Year);
if ( aD.Month >= 4 && aD.Month < 7 )
nRet = 2;
else if ( aD.Month >= 7 && aD.Month < 10 )
diff --git a/connectivity/source/drivers/file/FStatement.cxx b/connectivity/source/drivers/file/FStatement.cxx
index 4b4c886..7d24724 100644
--- a/connectivity/source/drivers/file/FStatement.cxx
+++ b/connectivity/source/drivers/file/FStatement.cxx
@@ -616,7 +616,6 @@ void OStatement_Base::GetAssignValues()
OSL_ENSURE(pInsertAtomCommalist != NULL,"OResultSet: pInsertAtomCommalist darf nicht NULL sein!");
OSL_ENSURE(pInsertAtomCommalist->count() > 0,"OResultSet: pInsertAtomCommalist <= 0");
- String aColumnName;
OSQLParseNode * pRow_Value_Const;
xub_StrLen nIndex=0;
for (sal_uInt32 i = 0; i < pInsertAtomCommalist->count(); i++)
diff --git a/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx b/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx
index 1507b8b..46627c0 100644
--- a/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx
+++ b/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx
@@ -50,9 +50,6 @@ MDatabaseMetaDataHelper::~MDatabaseMetaDataHelper()
sal_Bool MDatabaseMetaDataHelper::getTableStrings( OConnection* _pCon,
::std::vector< ::rtl::OUString >& _rStrings)
{
- ::rtl::OUString sAbURI;
- ::rtl::OString sAbURIString;
-
SAL_INFO("connectivity.mork", "=> MDatabaseMetaDataHelper::getTableStrings()");
/* add default table */
@@ -89,7 +86,6 @@ sal_Bool MDatabaseMetaDataHelper::getTables( OConnection* _pCon,
aRows.clear();
::std::vector< ::rtl::OUString > tables;
- OUString matchAny = "%";
if ( !getTableStrings( _pCon, tables ) )
return sal_False;
diff --git a/connectivity/source/drivers/mysql/YViews.cxx b/connectivity/source/drivers/mysql/YViews.cxx
index dd0b02f..eb1a8d7 100644
--- a/connectivity/source/drivers/mysql/YViews.cxx
+++ b/connectivity/source/drivers/mysql/YViews.cxx
@@ -127,7 +127,7 @@ void OViews::createView( const Reference< XPropertySet >& descriptor )
::rtl::OUString aSql( "CREATE VIEW " );
::rtl::OUString aQuote = xConnection->getMetaData()->getIdentifierQuoteString( );
- ::rtl::OUString sSchema,sCommand;
+ ::rtl::OUString sCommand;
aSql += ::dbtools::composeTableName( m_xMetaData, descriptor, ::dbtools::eInTableDefinitions, false, false, true );
diff --git a/connectivity/source/drivers/postgresql/pq_connection.cxx b/connectivity/source/drivers/postgresql/pq_connection.cxx
index 015fe53..1c0d52a 100644
--- a/connectivity/source/drivers/postgresql/pq_connection.cxx
+++ b/connectivity/source/drivers/postgresql/pq_connection.cxx
@@ -399,7 +399,6 @@ void Connection::setCatalog( const ::rtl::OUString& )
::rtl::OUString Connection::getCatalog() throw (SQLException, RuntimeException)
{
- OUString ret;
MutexGuard guard( m_refMutex->mutex );
if( m_settings.pConnection == 0 )
{
diff --git a/connectivity/source/parse/sqliterator.cxx b/connectivity/source/parse/sqliterator.cxx
index d2a63e2..ff64e50 100644
--- a/connectivity/source/parse/sqliterator.cxx
+++ b/connectivity/source/parse/sqliterator.cxx
@@ -871,7 +871,6 @@ void OSQLParseTreeIterator::traverseCreateColumns(const OSQLParseNode* pSelectNo
{
::rtl::OUString aColumnName;
::rtl::OUString aTypeName;
- ::rtl::OUString aTableRange;
sal_Int32 nType = DataType::VARCHAR;
aColumnName = pColumnRef->getChild(0)->getTokenValue();
@@ -985,7 +984,6 @@ bool OSQLParseTreeIterator::traverseSelectColumnNames(const OSQLParseNode* pSele
{
// Function call present
pColumnRef->parseNodeToStr( sColumnName, m_pImpl->m_xConnection, NULL, sal_False, sal_True );
- ::rtl::OUString sTableRange;
// check if the column is also a parameter
traverseORCriteria(pColumnRef); // num_value_exp
@@ -1074,7 +1072,7 @@ void OSQLParseTreeIterator::traverseByColumnNames(const OSQLParseNode* pSelectNo
OSL_ENSURE(!_bOrder || SQL_ISRULE(pOrderingSpecCommalist,ordering_spec_commalist),"OSQLParseTreeIterator:ordering_spec_commalist error in parse tree!");
OSL_ENSURE(pOrderingSpecCommalist->count() > 0,"OSQLParseTreeIterator: error in parse tree!");
- ::rtl::OUString sColumnName,aColumnAlias;
+ ::rtl::OUString sColumnName;
::rtl::OUString aTableRange;
sal_uInt32 nCount = pOrderingSpecCommalist->count();
for (sal_uInt32 i = 0; i < nCount; ++i)
diff --git a/cppcanvas/source/mtfrenderer/mtftools.cxx b/cppcanvas/source/mtfrenderer/mtftools.cxx
index 5ca31a7..f34487b 100644
--- a/cppcanvas/source/mtfrenderer/mtftools.cxx
+++ b/cppcanvas/source/mtfrenderer/mtftools.cxx
@@ -126,8 +126,6 @@ namespace cppcanvas
const ::basegfx::B2DVector* pScaling,
const double* pRotation )
{
- const ::Point aEmptyPoint;
-
const bool bOffsetting( !rOffset.equalZero() );
const bool bScaling( pScaling &&
pScaling->getX() != 1.0 &&
diff --git a/dbaccess/source/core/api/CacheSet.cxx b/dbaccess/source/core/api/CacheSet.cxx
index 5974d4a..32ffb78 100644
--- a/dbaccess/source/core/api/CacheSet.cxx
+++ b/dbaccess/source/core/api/CacheSet.cxx
@@ -335,10 +335,6 @@ void SAL_CALL OCacheSet::deleteRow(const ORowSetRow& _rDeleteRow ,const connecti
OUStringBuffer aSql("DELETE FROM " + m_aComposedTableName + " WHERE ");
- // list all cloumns that should be set
- ::rtl::OUString aQuote = getIdentifierQuoteString();
- static ::rtl::OUString aAnd(" AND ");
-
// use keys and indexes for exact positioning
// first the keys
const Reference<XNameAccess> xPrimaryKeyColumns = getPrimaryKeyColumns_throw(xSet);
diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx
index 3b7ca89..99022cf 100644
--- a/dbaccess/source/core/api/KeySet.cxx
+++ b/dbaccess/source/core/api/KeySet.cxx
@@ -532,7 +532,6 @@ void SAL_CALL OKeySet::updateRow(const ORowSetRow& _rInsertRow ,const ORowSetRow
::std::vector< Reference<XNameAccess> > aAllIndexColumns;
lcl_fillIndexColumns(xIndexes,aAllIndexColumns);
- OUString aColumnName;
OUStringBuffer sKeyCondition,sIndexCondition;
::std::vector<sal_Int32> aIndexColumnPositions;
@@ -945,7 +944,6 @@ void SAL_CALL OKeySet::deleteRow(const ORowSetRow& _rDeleteRow,const connectivit
::std::vector< Reference<XNameAccess> > aAllIndexColumns;
lcl_fillIndexColumns(xIndexes,aAllIndexColumns);
- OUString aColumnName;
OUStringBuffer sIndexCondition;
::std::vector<sal_Int32> aIndexColumnPositions;
SelectColumnsMetaData::const_iterator aIter = m_pColumnNames->begin();
diff --git a/dbaccess/source/core/api/OptimisticSet.cxx b/dbaccess/source/core/api/OptimisticSet.cxx
index e68cc7e..34f545b 100644
--- a/dbaccess/source/core/api/OptimisticSet.cxx
+++ b/dbaccess/source/core/api/OptimisticSet.cxx
@@ -182,8 +182,6 @@ void SAL_CALL OptimisticSet::updateRow(const ORowSetRow& _rInsertRow ,const ORow
static ::rtl::OUString s_sPara(" = ?");
::rtl::OUString aQuote = getIdentifierQuoteString();
- ::rtl::OUString aColumnName;
- ::rtl::OUStringBuffer sKeyCondition;
::std::map< ::rtl::OUString,bool > aResultSetChanged;
TSQLStatements aKeyConditions;
TSQLStatements aIndexConditions;
@@ -351,9 +349,6 @@ void SAL_CALL OptimisticSet::insertRow( const ORowSetRow& _rInsertRow,const conn
void SAL_CALL OptimisticSet::deleteRow(const ORowSetRow& _rDeleteRow,const connectivity::OSQLTable& /*_xTable*/ ) throw(SQLException, RuntimeException)
{
::rtl::OUString aQuote = getIdentifierQuoteString();
- ::rtl::OUString aColumnName;
- ::rtl::OUStringBuffer sKeyCondition,sIndexCondition;
- ::std::vector<sal_Int32> aIndexColumnPositions;
TSQLStatements aKeyConditions;
TSQLStatements aIndexConditions;
TSQLStatements aSql;
diff --git a/dbaccess/source/core/dataaccess/bookmarkcontainer.cxx b/dbaccess/source/core/dataaccess/bookmarkcontainer.cxx
index d58f5c3..c22fbd9 100644
--- a/dbaccess/source/core/dataaccess/bookmarkcontainer.cxx
+++ b/dbaccess/source/core/dataaccess/bookmarkcontainer.cxx
@@ -306,9 +306,6 @@ void OBookmarkContainer::implRemove(const ::rtl::OUString& _rName)
++aSearch
)
{
-#ifdef DBG_UTIL
- ::rtl::OUString sName = (*aSearch)->first;
-#endif
if ((*aSearch)->first == _rName)
{
aMapPos = *aSearch;
diff --git a/dbaccess/source/ui/app/AppControllerDnD.cxx b/dbaccess/source/ui/app/AppControllerDnD.cxx
index 19da30e..76edb07 100644
--- a/dbaccess/source/ui/app/AppControllerDnD.cxx
+++ b/dbaccess/source/ui/app/AppControllerDnD.cxx
@@ -262,9 +262,6 @@ void OApplicationController::deleteObjects( ElementType _eType, const ::std::vec
aObsolete != aUpperChildrenBound;
)
{
-#if OSL_DEBUG_LEVEL > 0
- ::rtl::OUString sObsoleteName = *aObsolete;
-#endif
::std::set< ::rtl::OUString >::iterator aNextObsolete = aObsolete; ++aNextObsolete;
aDeleteNames.erase( aObsolete );
--nObjectsLeft;
diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
index dc7c2eb..946b243 100644
--- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx
+++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
@@ -998,7 +998,6 @@ void OAppDetailPageHelper::Resize()
m_aFL.SetPosSizePixel( Point(nHalfOutputWidth , 0 ), Size(aFLSize.Width(), nOutputHeight ) );
- String sText = m_aTBPreview.GetItemText(SID_DB_APP_DISABLE_PREVIEW);
Size aTBSize = m_aTBPreview.CalcWindowSizePixel();
m_aTBPreview.SetPosSizePixel(Point(nOutputWidth - aTBSize.getWidth(), 0 ),
aTBSize );
diff --git a/dbaccess/source/ui/browser/brwctrlr.cxx b/dbaccess/source/ui/browser/brwctrlr.cxx
index 0fbfdeb..fc2ffc8 100644
--- a/dbaccess/source/ui/browser/brwctrlr.cxx
+++ b/dbaccess/source/ui/browser/brwctrlr.cxx
@@ -1926,7 +1926,6 @@ void SbaXDataBrowserController::ExecuteFilterSortCrit(sal_Bool bFilter)
if(bFilter)
{
DlgFilterCrit aDlg( getBrowserView(), getORB(), xCon, xParser, xSup->getColumns() );
- String aFilter;
if ( !aDlg.Execute() )
return; // if so we don't need to update the grid
aDlg.BuildWherePart();
@@ -1934,7 +1933,6 @@ void SbaXDataBrowserController::ExecuteFilterSortCrit(sal_Bool bFilter)
else
{
DlgOrderCrit aDlg( getBrowserView(),xCon,xParser,xSup->getColumns() );
- String aOrder;
if(!aDlg.Execute())
{
return; // if so we don't need to actualize the grid
diff --git a/dbaccess/source/ui/control/marktree.cxx b/dbaccess/source/ui/control/marktree.cxx
index dcf7e5f..a99ef1c 100644
--- a/dbaccess/source/ui/control/marktree.cxx
+++ b/dbaccess/source/ui/control/marktree.cxx
@@ -106,9 +106,6 @@ SvButtonState OMarkableTreeListBox::implDetermineState(SvTreeListEntry* _pEntry)
if (!GetModel()->HasChildren(_pEntry))
// nothing to do in this bottom-up routine if there are no children ...
return eState;
-#ifdef DBG_UTIL
- String sEntryText =GetEntryText(_pEntry);
-#endif
// loop through the children and check their states
sal_uInt16 nCheckedChildren = 0;
@@ -117,9 +114,6 @@ SvButtonState OMarkableTreeListBox::implDetermineState(SvTreeListEntry* _pEntry)
SvTreeListEntry* pChildLoop = GetModel()->FirstChild(_pEntry);
while (pChildLoop)
{
-#ifdef DBG_UTIL
- String sChildText =GetEntryText(pChildLoop);
-#endif
SvButtonState eChildState = implDetermineState(pChildLoop);
if (SV_BUTTON_TRISTATE == eChildState)
break;
diff --git a/dbaccess/source/ui/dlg/DbAdminImpl.cxx b/dbaccess/source/ui/dlg/DbAdminImpl.cxx
index e79538a..a8f028f 100644
--- a/dbaccess/source/ui/dlg/DbAdminImpl.cxx
+++ b/dbaccess/source/ui/dlg/DbAdminImpl.cxx
@@ -809,9 +809,6 @@ void ODbDataSourceAdministrationHelper::fillDatasourceInfo(const SfxItemSet& _rS
{
if (aIndirectProps.end() != aIndirectProps.find(aPreserved->second))
{
-#if OSL_DEBUG_LEVEL > 0
- const OUString sName = aPreserved->second;
-#endif
aRemoveIndexes.push_back(aPreserved->first - nPositionCorrector);
++nPositionCorrector;
}
@@ -823,14 +820,6 @@ void ODbDataSourceAdministrationHelper::fillDatasourceInfo(const SfxItemSet& _rS
++aRemoveIndex
)
::comphelper::removeElementAt(_rInfo, *aRemoveIndex);
-#if OSL_DEBUG_LEVEL > 0
- const PropertyValue* pWhatsLeft = _rInfo.getConstArray();
- const PropertyValue* pWhatsLeftEnd = pWhatsLeft + _rInfo.getLength();
- for (; pWhatsLeft != pWhatsLeftEnd; ++pWhatsLeft)
- {
- OUString sLookAtIt = pWhatsLeft->Name;
- }
-#endif
}
::connectivity::DriversConfig aDriverConfig(getORB());
diff --git a/dbaccess/source/ui/dlg/dbwizsetup.cxx b/dbaccess/source/ui/dlg/dbwizsetup.cxx
index 14177e7..424db24 100644
--- a/dbaccess/source/ui/dlg/dbwizsetup.cxx
+++ b/dbaccess/source/ui/dlg/dbwizsetup.cxx
@@ -927,9 +927,7 @@ sal_Bool ODbTypeWizDialogSetup::SaveDatabaseDocument()
String ODbTypeWizDialogSetup::createUniqueFileName(const INetURLObject& _rURL)
{
Reference< XSimpleFileAccess3 > xSimpleFileAccess(ucb::SimpleFileAccess::create(getORB()));
- :: rtl::OUString sFilename = _rURL.getName();
::rtl::OUString BaseName = _rURL.getBase();
- ::rtl::OUString sExtension = _rURL.getExtension();
sal_Bool bElementExists = sal_True;
diff --git a/dbaccess/source/ui/dlg/paramdialog.cxx b/dbaccess/source/ui/dlg/paramdialog.cxx
index 694cdea..2191c8b0 100644
--- a/dbaccess/source/ui/dlg/paramdialog.cxx
+++ b/dbaccess/source/ui/dlg/paramdialog.cxx
@@ -181,8 +181,6 @@ DBG_NAME(OParameterDialog)
return 0L;
}
- // transform the current string according to the param field type
- OUString sTransformedText(m_aParam.GetText());
Reference< XPropertySet > xParamAsSet;
m_xParams->getByIndex(m_nCurrentlySelected) >>= xParamAsSet;
if (xParamAsSet.is())
diff --git a/dbaccess/source/ui/dlg/tablespage.cxx b/dbaccess/source/ui/dlg/tablespage.cxx
index 4443a3c..4175480 100644
--- a/dbaccess/source/ui/dlg/tablespage.cxx
+++ b/dbaccess/source/ui/dlg/tablespage.cxx
@@ -172,7 +172,6 @@ DBG_NAME(OTableSubscriptionPage)
CheckAll(sal_False);
// check the ones which are in the list
- String aListBoxTable;
::rtl::OUString sCatalog, sSchema, sName;
SvTreeListEntry* pRootEntry = m_aTablesList.getAllObjectsEntry();
diff --git a/dbaccess/source/ui/misc/UITools.cxx b/dbaccess/source/ui/misc/UITools.cxx
index 61744a7..70c1bb1 100644
--- a/dbaccess/source/ui/misc/UITools.cxx
+++ b/dbaccess/source/ui/misc/UITools.cxx
@@ -370,9 +370,6 @@ TOTypeInfoSP getTypeInfoFromType(const OTypeInfoMap& _rTypeInfo,
for(aIter = aPair.first; aIter != aPair.second; ++aIter)
{
// search the best matching type (now comparing the local names)
-#ifdef DBG_UTIL
- ::rtl::OUString sDBTypeName = aIter->second->aTypeName;
-#endif
sal_Int32 nPrec = aIter->second->nPrecision;
sal_Int32 nScale = aIter->second->nMaximumScale;
if ( (nPrec >= _nPrecision)
@@ -389,9 +386,6 @@ TOTypeInfoSP getTypeInfoFromType(const OTypeInfoMap& _rTypeInfo,
for(aIter = aPair.first; aIter != aPair.second; ++aIter)
{
// search the best matching type (now comparing the local names)
-#ifdef DBG_UTIL
- ::rtl::OUString sDBTypeName = aIter->second->aTypeName;
-#endif
sal_Int32 nScale = aIter->second->nMaximumScale;
if ( (nScale >= _nScale)
&& (aIter->second->bAutoIncrement == _bAutoIncrement)
diff --git a/dbaccess/source/ui/misc/WColumnSelect.cxx b/dbaccess/source/ui/misc/WColumnSelect.cxx
index 24c5061..b703d4a 100644
--- a/dbaccess/source/ui/misc/WColumnSelect.cxx
+++ b/dbaccess/source/ui/misc/WColumnSelect.cxx
@@ -207,7 +207,6 @@ IMPL_LINK( OWizColumnSelect, ButtonClickHdl, Button *, pButton )
::std::vector< ::rtl::OUString> aRightColumns;
fillColumns(pRight,aRightColumns);
- String aColumnName;
if(!bAll)
{
for(sal_uInt16 i=0; i < pLeft->GetSelectEntryCount(); ++i)
@@ -257,7 +256,6 @@ IMPL_LINK( OWizColumnSelect, ListDoubleClickHdl, MultiListBox *, pListBox )
::std::vector< ::rtl::OUString> aRightColumns;
fillColumns(pRight,aRightColumns);
- String aColumnName;
for(sal_uInt16 i=0; i < pLeft->GetSelectEntryCount(); ++i)
moveColumn(pRight,pLeft,aRightColumns,pLeft->GetSelectEntry(i),sExtraChars,nMaxNameLen,aCase);
for(sal_uInt16 j=pLeft->GetSelectEntryCount(); j ; --j)
diff --git a/dbaccess/source/ui/misc/WCopyTable.cxx b/dbaccess/source/ui/misc/WCopyTable.cxx
index 5edb86e..8a3a8bc 100644
--- a/dbaccess/source/ui/misc/WCopyTable.cxx
+++ b/dbaccess/source/ui/misc/WCopyTable.cxx
@@ -924,7 +924,6 @@ IMPL_LINK_NOARG(OCopyTableWizard, ImplOKHdl)
if ( aFind == m_vDestColumns.end() && m_xInteractionHandler.is() )
{
- String sTitle(ModuleRes(STR_TABLEDESIGN_NO_PRIM_KEY_HEAD));
String sMsg(ModuleRes(STR_TABLEDESIGN_NO_PRIM_KEY));
SQLContext aError;
aError.Message = sMsg;
@@ -1114,7 +1113,6 @@ void OCopyTableWizard::loadData( const ICopyTableSourceObject& _rSourceObject,
_rColumns.clear();
OFieldDescription* pActFieldDescr = NULL;
- String aType;
::rtl::OUString sCreateParam(RTL_CONSTASCII_USTRINGPARAM("x"));
//////////////////////////////////////////////////////////////////////
// ReadOnly-Flag
@@ -1351,8 +1349,6 @@ Reference< XPropertySet > OCopyTableWizard::createTable()
const ::rtl::OUString* pIter = aSeq.getConstArray();
const ::rtl::OUString* pEnd = pIter + aSeq.getLength();
- ::std::vector<int> aAlreadyFound(m_vColumnPos.size(),0);
-
for(sal_Int32 nNewPos=1;pIter != pEnd;++pIter,++nNewPos)
{
ODatabaseExport::TColumns::const_iterator aDestIter = m_vDestColumns.find(*pIter);
diff --git a/dbaccess/source/ui/misc/WTypeSelect.cxx b/dbaccess/source/ui/misc/WTypeSelect.cxx
index d9ec94d..8f5f550 100644
--- a/dbaccess/source/ui/misc/WTypeSelect.cxx
+++ b/dbaccess/source/ui/misc/WTypeSelect.cxx
@@ -422,7 +422,6 @@ long OWizTypeSelectList::PreNotify( NotifyEvent& rEvt )
{
case SID_TABLEDESIGN_TABED_PRIMARYKEY:
{
- String sColumnName;
sal_uInt16 nCount = GetEntryCount();
for(sal_uInt16 j = 0 ; j < nCount ; ++j)
{
diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
index fe780c9..49330e5 100644
--- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx
+++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
@@ -678,7 +678,6 @@ namespace
if ( !pEntryField->isOtherFunction() )
{
// we have to look if we have alias.* here but before we have to check if the column doesn't already exist
- String sTemp = rFieldName;
OTableFieldDescRef aInfo = new OTableFieldDesc();
OJoinTableView::OTableWindowMap::iterator tableIter = pTabList->begin();
OJoinTableView::OTableWindowMap::iterator tableEnd = pTabList->end();
diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
index 381b8c4..003c9ac 100644
--- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
+++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
@@ -2258,7 +2258,6 @@ sal_Bool OSelectionBrowseBox::GetFunctionName(sal_uInt32 _nFunctionTokenId,Strin
{
DBG_CHKTHIS(OSelectionBrowseBox,NULL);
sal_Bool bErg=sal_True;
- String aText;
switch(_nFunctionTokenId)
{
case SQL_TOKEN_COUNT:
@@ -2386,7 +2385,6 @@ void OSelectionBrowseBox::SetCellContents(sal_Int32 nRow, sal_uInt16 nColId, con
break;
case BROW_FUNCTION_ROW:
{
- String sOldFunctionName = pEntry->GetFunction();
String sGroupFunctionName = m_aFunctionStrings.GetToken(comphelper::string::getTokenCount(m_aFunctionStrings, ';')-1);
pEntry->SetFunction(strNewText);
// first reset this two member
@@ -2512,7 +2510,6 @@ sal_Bool OSelectionBrowseBox::isCutAllowed()
// -----------------------------------------------------------------------------
void OSelectionBrowseBox::cut()
{
- String sOldValue = GetCellContents(GetRealRow(GetCurRow()),GetCurColumnId());
long nRow = GetRealRow(GetCurRow());
switch (nRow)
{
diff --git a/dbaccess/source/ui/tabledesign/TEditControl.cxx b/dbaccess/source/ui/tabledesign/TEditControl.cxx
index 184a96069..0cc428e 100644
--- a/dbaccess/source/ui/tabledesign/TEditControl.cxx
+++ b/dbaccess/source/ui/tabledesign/TEditControl.cxx
@@ -374,7 +374,6 @@ void OTableEditorCtrl::PaintCell(OutputDevice& rDev, const Rectangle& rRect,
{
DBG_CHKTHIS(OTableEditorCtrl,NULL);
const String aText( GetCellText( m_nCurrentPos, nColumnId ));
- const Size TxtSize(GetDataWindow().GetTextWidth(aText), GetDataWindow().GetTextHeight());
rDev.Push( PUSH_CLIPREGION );
rDev.SetClipRegion( rRect );
diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx
index dd1f6aa..0a0b7f8 100644
--- a/dbaccess/source/ui/tabledesign/TableController.cxx
+++ b/dbaccess/source/ui/tabledesign/TableController.cxx
@@ -823,7 +823,6 @@ void OTableController::loadData()
OSL_ENSURE(xColSup.is(),"No XColumnsSupplier!");
Reference<XNameAccess> xColumns = xColSup->getColumns();
OFieldDescription* pActFieldDescr = NULL;
- String aType;
//////////////////////////////////////////////////////////////////////
// ReadOnly-Flag
// Bei Drop darf keine Zeile editierbar sein.
commit 800376357fd1fc0594ba3dc5e0579fd163a3039a
Author: Thomas Arnhold <thomas at arnhold.org>
Date: Mon Feb 25 02:01:54 2013 +0100
loplugin: unused variable
First parameter is unused since fb98c33c688ef479a64f9838abd63f617fd4b589
Change-Id: Iff9ff51227c5244950830febf2cdcf78e1de4d29
diff --git a/dbaccess/source/ui/control/SqlNameEdit.cxx b/dbaccess/source/ui/control/SqlNameEdit.cxx
index 005f522..04e9602 100644
--- a/dbaccess/source/ui/control/SqlNameEdit.cxx
+++ b/dbaccess/source/ui/control/SqlNameEdit.cxx
@@ -32,14 +32,12 @@ namespace dbaui
);
}
//------------------------------------------------------------------
- sal_Bool OSQLNameChecker::checkString( const ::rtl::OUString& _sOldValue,
- const ::rtl::OUString& _sToCheck,
+ sal_Bool OSQLNameChecker::checkString(const ::rtl::OUString& _sToCheck,
::rtl::OUString& _rsCorrected)
{
sal_Bool bCorrected = sal_False;
if ( m_bCheck )
{
- XubString sSavedValue = _sOldValue;
XubString sText = _sToCheck;
xub_StrLen nMatch = 0;
for ( xub_StrLen i=nMatch;i < sText.Len(); ++i )
@@ -59,7 +57,7 @@ namespace dbaui
void OSQLNameEdit::Modify()
{
::rtl::OUString sCorrected;
- if ( checkString( GetSavedValue(),GetText(),sCorrected ) )
+ if ( checkString( GetText(),sCorrected ) )
{
Selection aSel = GetSelection();
aSel.setMax( aSel.getMin() );
@@ -73,7 +71,7 @@ namespace dbaui
void OSQLNameComboBox::Modify()
{
::rtl::OUString sCorrected;
- if ( checkString( GetSavedValue(),GetText(),sCorrected ) )
+ if ( checkString( GetText(),sCorrected ) )
{
Selection aSel = GetSelection();
aSel.setMax( aSel.getMin() );
diff --git a/dbaccess/source/ui/inc/SqlNameEdit.hxx b/dbaccess/source/ui/inc/SqlNameEdit.hxx
index c79eb27..cfe88d0 100644
--- a/dbaccess/source/ui/inc/SqlNameEdit.hxx
+++ b/dbaccess/source/ui/inc/SqlNameEdit.hxx
@@ -50,7 +50,7 @@ namespace dbaui
{
m_bCheck = _bCheck;
}
- sal_Bool checkString(const ::rtl::OUString& _sOldValue,const ::rtl::OUString& _sToCheck,::rtl::OUString& _rsCorrected);
+ sal_Bool checkString(const ::rtl::OUString& _sToCheck,::rtl::OUString& _rsCorrected);
};
//==================================================================
class OSQLNameEdit : public Edit
commit 1bda31ac1374f18bda488c93c1420b6f208bd7d0
Author: Thomas Arnhold <thomas at arnhold.org>
Date: Mon Feb 25 00:56:30 2013 +0100
loplugin: unused variables
aErrorText usage was commented out since 2000.
Change-Id: Ic4d81c2d48e59a36e2f4280ceb36ea8148b9dc9d
diff --git a/basctl/inc/basidesh.hrc b/basctl/inc/basidesh.hrc
index 5c551b3..990fe7a 100644
--- a/basctl/inc/basidesh.hrc
+++ b/basctl/inc/basidesh.hrc
@@ -67,7 +67,6 @@
#define RID_STR_OPEN ( RID_BASICIDE_START + 20 )
#define RID_STR_SAVE ( RID_BASICIDE_START + 21 )
#define RID_STR_RUNTIMEERROR ( RID_BASICIDE_START + 22 )
-#define RID_STR_COMPILEERROR ( RID_BASICIDE_START + 23 )
#define RID_STR_STDDIALOGNAME ( RID_BASICIDE_START + 24 )
#define RID_STR_STDMODULENAME ( RID_BASICIDE_START + 27 )
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx
index 7bcc2dc..72d594d 100644
--- a/basctl/source/basicide/baside2.cxx
+++ b/basctl/source/basicide/baside2.cxx
@@ -654,7 +654,6 @@ long ModulWindow::BasicErrorHdl( StarBASIC * pBasic )
// ReturnWert: BOOL
// FALSE: cancel
// TRUE: go on....
- OUString aErrorText( pBasic->GetErrorText() );
sal_uInt16 nErrorLine = pBasic->GetLine() - 1;
sal_uInt16 nErrCol1 = pBasic->GetCol1();
sal_uInt16 nErrCol2 = pBasic->GetCol2();
@@ -664,17 +663,6 @@ long ModulWindow::BasicErrorHdl( StarBASIC * pBasic )
AssertValidEditEngine();
GetEditView()->SetSelection( TextSelection( TextPaM( nErrorLine, nErrCol1 ), TextPaM( nErrorLine, nErrCol2 ) ) );
- OUStringBuffer aErrorTextPrefixBuf;
- if( pBasic->IsCompilerError() )
- aErrorTextPrefixBuf.append(IDE_RESSTR(RID_STR_COMPILEERROR));
- else
- {
- aErrorTextPrefixBuf.append(IDE_RESSTR(RID_STR_RUNTIMEERROR));
- aErrorTextPrefixBuf.append(StarBASIC::GetVBErrorCode(pBasic->GetErrorCode()));
- aErrorTextPrefixBuf.append(' ');
- rLayout.UpdateDebug(false);
- }
- OUString aErrorTextPrefix(aErrorTextPrefixBuf.makeStringAndClear());
// if other basic, the IDE should try to display the correct module
bool const bMarkError = pBasic == GetBasic();
if ( bMarkError )
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index b812527..ca6318f 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -1909,9 +1909,6 @@ sal_Bool WatchTreeListBox::EditingEntry( SvTreeListEntry* pEntry, Selection& )
sal_Bool WatchTreeListBox::EditedEntry( SvTreeListEntry* pEntry, const OUString& rNewText )
{
- WatchItem* pItem = (WatchItem*)pEntry->GetUserData();
- String aVName( pItem->maName );
-
String aResult = comphelper::string::strip(rNewText, ' ');
sal_uInt16 nResultLen = aResult.Len();
diff --git a/basctl/source/basicide/basidesh.src b/basctl/source/basicide/basidesh.src
index 22f1d8c..018a2e4 100644
--- a/basctl/source/basicide/basidesh.src
+++ b/basctl/source/basicide/basidesh.src
@@ -117,10 +117,6 @@ String RID_STR_CANNOTRUNMACRO
{
Text [ en-US ] = "For security reasons, you cannot run this macro.\n\nFor more information, check the security settings." ;
};
-String RID_STR_COMPILEERROR
-{
- Text [ en-US ] = "Compile Error: " ;
-};
String RID_STR_RUNTIMEERROR
{
Text [ en-US ] = "Runtime Error: #" ;
More information about the Libreoffice-commits
mailing list