summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-02-24 18:39:08 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-02-24 18:42:02 +0100
commit305bf19e390aebdf2d20ea052a92f782e8d1185c (patch)
tree7a94d504a364f03e998e73774eb10b162b173731 /cui
parente5444ae3e099e1279b9b685b623c6e50bb8efd3b (diff)
loplugin: unused variables
And some fallout. Change-Id: I8dfc12f3566e72d79d4f9930284c92577aa485a1
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/cfg.cxx11
-rw-r--r--cui/source/customize/selector.cxx6
-rw-r--r--cui/source/dialogs/about.cxx4
-rw-r--r--cui/source/dialogs/cuigaldlg.cxx2
-rw-r--r--cui/source/dialogs/hangulhanjadlg.cxx1
-rw-r--r--cui/source/dialogs/hlinettp.cxx1
-rw-r--r--cui/source/dialogs/hlmarkwn.cxx1
-rw-r--r--cui/source/dialogs/iconcdlg.cxx1
-rw-r--r--cui/source/dialogs/scriptdlg.cxx2
-rw-r--r--cui/source/inc/selector.hxx1
-rw-r--r--cui/source/options/optpath.cxx2
-rw-r--r--cui/source/tabpages/tparea.cxx3
12 files changed, 2 insertions, 33 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index dd0121439d07..abe67f6ecc30 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -590,9 +590,6 @@ ConvertSvxConfigEntry(
static const OUString aDescriptorLabel(
ITEM_DESCRIPTOR_LABEL );
- static const OUString aDescriptorContainer(
- ITEM_DESCRIPTOR_CONTAINER );
-
uno::Sequence< beans::PropertyValue > aPropSeq( 3 );
aPropSeq[0].Name = aDescriptorCommandURL;
@@ -668,9 +665,6 @@ ConvertToolbarEntry(
static const OUString aDescriptorLabel(
ITEM_DESCRIPTOR_LABEL );
- static const OUString aDescriptorContainer(
- ITEM_DESCRIPTOR_CONTAINER );
-
static const OUString aIsVisible(
ITEM_DESCRIPTOR_ISVISIBLE );
@@ -1933,8 +1927,8 @@ void SvxConfigPage::PositionContentsListBox()
return;
}
- Point p, newp;
- Size s, news;
+ Point p;
+ Size s;
long x, y, width, height;
// x and width is same as aTopLevelListBox
@@ -2060,7 +2054,6 @@ SvTreeListEntry* SvxConfigPage::AddFunction(
SvTreeListEntry* pTarget, bool bFront, bool bAllowDuplicates )
{
String aDisplayName = pSelectorDlg->GetSelectedDisplayName();
- String aHelpText = pSelectorDlg->GetSelectedHelpText();
String aURL = pSelectorDlg->GetScriptURL();
if ( !aURL.Len() )
diff --git a/cui/source/customize/selector.cxx b/cui/source/customize/selector.cxx
index 658c81a822f4..65bfde5a69b6 100644
--- a/cui/source/customize/selector.cxx
+++ b/cui/source/customize/selector.cxx
@@ -1027,10 +1027,4 @@ SvxScriptSelectorDialog::GetSelectedDisplayName()
return m_pCommands->GetEntryText( m_pCommands->GetLastSelectedEntry() );
}
-String
-SvxScriptSelectorDialog::GetSelectedHelpText()
-{
- return m_pCommands->GetHelpText( m_pCommands->GetLastSelectedEntry() );
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx
index f7332b991797..9c247d3dcdfc 100644
--- a/cui/source/dialogs/about.cxx
+++ b/cui/source/dialogs/about.cxx
@@ -203,10 +203,6 @@ static bool loadBrandSvg(const char *pName, BitmapEx &rBitmap, int nWidth )
osl_getProcessLocale (&pLoc);
LanguageTag aLanguageTag( *pLoc);
- rtl::OUString aName = aBaseName + aSvg;
- rtl::OUString aLocaleName = ( aBaseName + rtl::OUString("-") +
- aLanguageTag.getBcp47() +
- aSvg );
rtl::OUString uri = rtl::OUString::createFromAscii( "$BRAND_BASE_DIR/program" ) + aBaseName+aSvg;
rtl::Bootstrap::expandMacros( uri );
INetURLObject aObj( uri );
diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx
index b594b2e4d866..87a6e7c1c892 100644
--- a/cui/source/dialogs/cuigaldlg.cxx
+++ b/cui/source/dialogs/cuigaldlg.cxx
@@ -163,7 +163,6 @@ void SearchThread::ImplSearch( const INetURLObject& rStartURL,
if( bDocument )
{
GraphicDescriptor aDesc( aFoundURL );
- String aFileName;
if( ( aDesc.Detect() &&
::std::find( rFormats.begin(),
@@ -292,7 +291,6 @@ TakeThread::~TakeThread()
void TakeThread::execute()
{
- String aName;
INetURLObject aURL;
sal_uInt16 nEntries;
GalleryTheme* pThm = mpBrowser->GetXChgData()->pTheme;
diff --git a/cui/source/dialogs/hangulhanjadlg.cxx b/cui/source/dialogs/hangulhanjadlg.cxx
index d994258066f2..afad83fed451 100644
--- a/cui/source/dialogs/hangulhanjadlg.cxx
+++ b/cui/source/dialogs/hangulhanjadlg.cxx
@@ -354,7 +354,6 @@ namespace svx
long nItemWidth = 2*GetTextWidth( aOneCharacter );
m_aValueSet.SetItemWidth( nItemWidth );
- Point aPos(0,0);
Size aSize(GetSizePixel());
m_aValueSet.SetSizePixel(aSize);
m_aListBox.SetSizePixel(aSize);
diff --git a/cui/source/dialogs/hlinettp.cxx b/cui/source/dialogs/hlinettp.cxx
index 319e68dc36dd..b270153d320f 100644
--- a/cui/source/dialogs/hlinettp.cxx
+++ b/cui/source/dialogs/hlinettp.cxx
@@ -182,7 +182,6 @@ void SvxHyperlinkInternetTp::GetCurentItemData ( String& aStrURL, String& aStrNa
String SvxHyperlinkInternetTp::CreateAbsoluteURL() const
{
String aStrURL = maCbbTarget.GetText();
- String aScheme = GetSchemeFromURL(aStrURL);
INetURLObject aURL(aStrURL);
diff --git a/cui/source/dialogs/hlmarkwn.cxx b/cui/source/dialogs/hlmarkwn.cxx
index 6430658f0b09..fe8408130bd1 100644
--- a/cui/source/dialogs/hlmarkwn.cxx
+++ b/cui/source/dialogs/hlmarkwn.cxx
@@ -208,7 +208,6 @@ sal_Bool SvxHlinkDlgMarkWnd::ConnectToDialog( sal_Bool bDoit )
void SvxHlinkDlgMarkWnd::RefreshTree ( String aStrURL )
{
- String aEmptyStr;
OUString aUStrURL;
EnterWait();
diff --git a/cui/source/dialogs/iconcdlg.cxx b/cui/source/dialogs/iconcdlg.cxx
index 12b2e50bcdf5..6c24c0c7ec69 100644
--- a/cui/source/dialogs/iconcdlg.cxx
+++ b/cui/source/dialogs/iconcdlg.cxx
@@ -989,7 +989,6 @@ sal_Bool IconChoiceDialog::QueryClose()
void IconChoiceDialog::Start_Impl()
{
- Point aPos;
sal_uInt16 nActPage;
if ( mnCurrentPageId == 0 || mnCurrentPageId == USHRT_MAX )
diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx
index 33a17f60ef22..7bfbbf521fde 100644
--- a/cui/source/dialogs/scriptdlg.cxx
+++ b/cui/source/dialogs/scriptdlg.cxx
@@ -988,8 +988,6 @@ void SvxScriptOrgDialog::createEntry( SvTreeListEntry* pEntry )
String aChildName = aChildNode->getName();
SvTreeListEntry* pNewEntry = NULL;
-
- OUString name( aChildName );
Reference<XModel> xDocumentModel = getModel( pEntry );
// ISSUE do we need to remove all entries for parent
diff --git a/cui/source/inc/selector.hxx b/cui/source/inc/selector.hxx
index 508ca7c76387..ce1f607add8c 100644
--- a/cui/source/inc/selector.hxx
+++ b/cui/source/inc/selector.hxx
@@ -218,7 +218,6 @@ public:
String GetScriptURL() const;
String GetSelectedDisplayName();
- String GetSelectedHelpText();
void SetRunLabel();
void SetDialogDescription(const String& rDescription);
};
diff --git a/cui/source/options/optpath.cxx b/cui/source/options/optpath.cxx
index 5c322aec6cfe..d63081e505e8 100644
--- a/cui/source/options/optpath.cxx
+++ b/cui/source/options/optpath.cxx
@@ -268,7 +268,6 @@ SfxTabPage* SvxPathTabPage::Create( Window* pParent,
sal_Bool SvxPathTabPage::FillItemSet( SfxItemSet& )
{
- SvtPathOptions aPathOpt;
for ( sal_uInt16 i = 0; i < pPathBox->GetEntryCount(); ++i )
{
PathUserData_Impl* pPathImpl = (PathUserData_Impl*)pPathBox->GetEntry(i)->GetUserData();
@@ -284,7 +283,6 @@ sal_Bool SvxPathTabPage::FillItemSet( SfxItemSet& )
void SvxPathTabPage::Reset( const SfxItemSet& )
{
pPathBox->Clear();
- SvtPathOptions aPathOpt; //! deprecated
HeaderBar &rBar = pPathBox->GetTheHeaderBar();
long nWidth1 = rBar.GetTextWidth(rBar.GetItemText(1));
diff --git a/cui/source/tabpages/tparea.cxx b/cui/source/tabpages/tparea.cxx
index e2e18b23e6eb..b7f300de31c0 100644
--- a/cui/source/tabpages/tparea.cxx
+++ b/cui/source/tabpages/tparea.cxx
@@ -155,7 +155,6 @@ IMPL_LINK(SvxTransparenceTabPage, ModifiedTrgrHdl_Impl, void *, pControl)
(sal_uInt16)aMtrTrgrBorder.GetValue(),
100, 100);
- String aString;
XFillFloatTransparenceItem aItem( rXFSet.GetPool()/*aString*/, aTmpGradient);
rXFSet.Put ( aItem );
@@ -380,7 +379,6 @@ sal_Bool SvxTransparenceTabPage::FillItemSet(SfxItemSet& rAttrs)
(sal_uInt16)aMtrTrgrBorder.GetValue(),
100, 100);
- String aString;
XFillFloatTransparenceItem aItem( rXFSet.GetPool()/*aString*/, aTmpGradient);
const SfxPoolItem* pOld = GetOldItem(rAttrs, XATTR_FILLFLOATTRANSPARENCE);
@@ -406,7 +404,6 @@ sal_Bool SvxTransparenceTabPage::FillItemSet(SfxItemSet& rAttrs)
XGradient aGrad(aColor, Color(COL_WHITE));
aGrad.SetStartIntens(100);
aGrad.SetEndIntens(100);
- String aString;
XFillFloatTransparenceItem aItem( rXFSet.GetPool()/*aString*/, aGrad);
aItem.SetEnabled(sal_False);
rAttrs.Put(aItem);