summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--basegfx/source/polygon/b2dsvgpolypolygon.cxx2
-rw-r--r--basic/source/basmgr/basicmanagerrepository.cxx2
-rw-r--r--basic/source/basmgr/basmgr.cxx4
-rw-r--r--basic/source/classes/eventatt.cxx1
-rw-r--r--basic/source/runtime/methods.cxx1
-rw-r--r--basic/source/sbx/sbxscan.cxx2
-rw-r--r--chart2/source/tools/RegressionCurveHelper.cxx1
-rw-r--r--chart2/source/view/main/ShapeFactory.cxx1
-rw-r--r--codemaker/source/cppumaker/cpputype.cxx2
-rw-r--r--connectivity/source/commontools/parameters.cxx1
-rw-r--r--connectivity/source/drivers/file/FConnection.cxx2
-rw-r--r--connectivity/source/drivers/file/FDateFunctions.cxx1
-rw-r--r--connectivity/source/drivers/file/FStatement.cxx1
-rw-r--r--connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx4
-rw-r--r--connectivity/source/drivers/mysql/YViews.cxx2
-rw-r--r--connectivity/source/drivers/postgresql/pq_connection.cxx1
-rw-r--r--connectivity/source/parse/sqliterator.cxx4
-rw-r--r--cppcanvas/source/mtfrenderer/mtftools.cxx2
-rw-r--r--dbaccess/source/core/api/CacheSet.cxx4
-rw-r--r--dbaccess/source/core/api/KeySet.cxx2
-rw-r--r--dbaccess/source/core/api/OptimisticSet.cxx5
-rw-r--r--dbaccess/source/core/dataaccess/bookmarkcontainer.cxx3
-rw-r--r--dbaccess/source/ui/app/AppControllerDnD.cxx3
-rw-r--r--dbaccess/source/ui/app/AppDetailPageHelper.cxx1
-rw-r--r--dbaccess/source/ui/browser/brwctrlr.cxx2
-rw-r--r--dbaccess/source/ui/control/marktree.cxx6
-rw-r--r--dbaccess/source/ui/dlg/DbAdminImpl.cxx11
-rw-r--r--dbaccess/source/ui/dlg/dbwizsetup.cxx2
-rw-r--r--dbaccess/source/ui/dlg/paramdialog.cxx2
-rw-r--r--dbaccess/source/ui/dlg/tablespage.cxx1
-rw-r--r--dbaccess/source/ui/misc/UITools.cxx6
-rw-r--r--dbaccess/source/ui/misc/WColumnSelect.cxx2
-rw-r--r--dbaccess/source/ui/misc/WCopyTable.cxx4
-rw-r--r--dbaccess/source/ui/misc/WTypeSelect.cxx1
-rw-r--r--dbaccess/source/ui/querydesign/QueryDesignView.cxx1
-rw-r--r--dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx3
-rw-r--r--dbaccess/source/ui/tabledesign/TEditControl.cxx1
-rw-r--r--dbaccess/source/ui/tabledesign/TableController.cxx1
38 files changed, 4 insertions, 91 deletions
diff --git a/basegfx/source/polygon/b2dsvgpolypolygon.cxx b/basegfx/source/polygon/b2dsvgpolypolygon.cxx
index b73154308082..651400d7f803 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 4f8fd9e766b3..59e6ee2da2b9 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 961b5ed7fa97..046376ceae99 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 7eb79f3650f0..da7d5d4d613b 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 af2f02142050..5f4ea93e6212 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 d6e55d353a03..f9784e442f65 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 81941a608451..4c346c6f6938 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 739ce751ad5b..3a5c309b71dc 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 2c4d80884d7b..641408e49b38 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 ef83e56ea80c..445226923259 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 5f0beab19a8f..0683af96b69a 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 e45228aa2f57..b9a20b1fd00d 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 4b4c886a8b2d..7d247247b7c7 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 1507b8b6ec2e..46627c0e460f 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 dd0b02fea7db..eb1a8d7f2103 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 015fe534d8b9..1c0d52ad887b 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 d2a63e29251e..ff64e506e1d9 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 5ca31a7806d2..f34487b56b6f 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 5974d4a11c03..32ffb78437c4 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 3b7ca892a56b..99022cf3727a 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 e68cc7e9ede0..34f545be1057 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 d58f5c330d7d..c22fbd99c6c6 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 19da30e36ae4..76edb0764688 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 dc7c2ebc1e10..946b2431313a 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 0fbfdeb4d8ac..fc2ffc8fee75 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 dcf7e5f559ac..a99ef1c9a3fa 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 e79538af8920..a8f028fc3efe 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 14177e75fcdb..424db244bf36 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 694cdeaef318..2191c8b02d70 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 4443a3ced3a4..41754803c643 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 61744a7274cb..70c1bb12c5d1 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 24c5061ae695..b703d4a00c4a 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 5edb86e1b2b4..8a3a8bc300de 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 d9ec94d7be7e..8f5f5508d650 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 fe780c9657d2..49330e5d2b99 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 381b8c47a3c3..003c9ac57c33 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 184a9606902c..0cc428eb55fc 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 dd1f6aab9666..0a0b7f811c2d 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.