diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-06-24 13:21:05 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-06-24 13:21:05 +0200 |
commit | 56bbd709904b3a8b8932acbf72df4192d873c18f (patch) | |
tree | 3042f858b48e91ef19c0216c2fa01fadf4ad384f /cui/source | |
parent | bcfc61a49fd3e6acccd155d5c0ce7746f8e97a03 (diff) |
-Werror,-Wunused-function -Werror,-Wunused-private-field
... -Werror,-Wunused-variable loplugin:bodynotinblock
Change-Id: I64742401e22b4b83364411a7454c755daa78d00c
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/dialogs/iconcdlg.cxx | 28 | ||||
-rw-r--r-- | cui/source/inc/iconcdlg.hxx | 2 |
2 files changed, 1 insertions, 29 deletions
diff --git a/cui/source/dialogs/iconcdlg.cxx b/cui/source/dialogs/iconcdlg.cxx index 0af84e032145..5c795dbe1f4d 100644 --- a/cui/source/dialogs/iconcdlg.cxx +++ b/cui/source/dialogs/iconcdlg.cxx @@ -35,31 +35,6 @@ using ::std::vector; -// some stuff for easier changes for SvtViewOptions -static const sal_Char* pViewOptDataName = "dialog data"; -#define VIEWOPT_DATANAME OUString::createFromAscii( pViewOptDataName ) - -static inline void SetViewOptUserItem( SvtViewOptions& rOpt, const OUString& rData ) -{ - rOpt.SetUserItem( VIEWOPT_DATANAME, css::uno::makeAny( rData ) ); -} - -static inline OUString GetViewOptUserItem( const SvtViewOptions& rOpt ) -{ - ::com::sun::star::uno::Any aAny( rOpt.GetUserItem( VIEWOPT_DATANAME ) ); - OUString aUserData; - aAny >>= aUserData; - - return aUserData; -} - - - - -// Class IconChoicePage - - - /********************************************************************** | | Ctor / Dtor @@ -209,7 +184,6 @@ IconChoiceDialog::IconChoiceDialog ( Window* pParent, const OString& rID, pOutSet ( NULL ), pExampleSet ( NULL ), pRanges ( NULL ), - rId ( rID ), bHideResetBtn ( false ), bModal ( false ), @@ -754,7 +728,7 @@ void IconChoiceDialog::Start_Impl() nActPage = maPageList.front()->nId; }*/ //else if ( USHRT_MAX != mnCurrentPageId && GetPageData ( mnCurrentPageId ) != NULL ) - nActPage = mnCurrentPageId; + nActPage = mnCurrentPageId; mnCurrentPageId = nActPage; diff --git a/cui/source/inc/iconcdlg.hxx b/cui/source/inc/iconcdlg.hxx index fb8ad2ff1780..ceb2f1933022 100644 --- a/cui/source/inc/iconcdlg.hxx +++ b/cui/source/inc/iconcdlg.hxx @@ -144,8 +144,6 @@ private : SfxItemSet* pExampleSet; sal_uInt16* pRanges; - const OString& rId; - bool bHideResetBtn; bool bModal; bool bInOK; |