diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-21 21:24:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-22 09:39:17 +0100 |
commit | 53f4837b92560d75eb6e629bebaf4e523ee40162 (patch) | |
tree | 44210662a3f7f4180b2cd8d0ad178293ed681a09 | |
parent | apparently can enable this warning (diff) | |
download | core-53f4837b92560d75eb6e629bebaf4e523ee40162.tar.gz core-53f4837b92560d75eb6e629bebaf4e523ee40162.zip |
callcatcher: various methods
-rw-r--r-- | basic/inc/basic/basmgr.hxx | 4 | ||||
-rw-r--r-- | basic/source/basmgr/basmgr.cxx | 34 | ||||
-rw-r--r-- | unotools/source/config/lingucfg.cxx | 2 | ||||
-rw-r--r-- | unusedcode.easy | 5 | ||||
-rw-r--r-- | vcl/inc/vcl/svapp.hxx | 1 | ||||
-rw-r--r-- | vcl/source/app/svapp.cxx | 11 |
6 files changed, 2 insertions, 55 deletions
diff --git a/basic/inc/basic/basmgr.hxx b/basic/inc/basic/basmgr.hxx index 415bf7af4116..2d238d10e243 100644 --- a/basic/inc/basic/basmgr.hxx +++ b/basic/inc/basic/basmgr.hxx @@ -164,8 +164,7 @@ protected: sal_Bool ImplEncryptStream( SvStream& rStream ) const; BasicLibInfo* FindLibInfo( StarBASIC* pBasic ) const; void CheckModules( StarBASIC* pBasic, sal_Bool bReference ) const; - BasicManager(); // This is used only to customize the paths for 'Save as'. - ~BasicManager(); + ~BasicManager(); public: TYPEINFO(); @@ -214,7 +213,6 @@ public: sal_Bool IsBasicModified() const; sal_Bool HasErrors(); - void ClearErrors(); BasicError* GetFirstError(); BasicError* GetNextError(); diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx index 14626f6c7e2a..c3187f58f4fa 100644 --- a/basic/source/basmgr/basmgr.cxx +++ b/basic/source/basmgr/basmgr.cxx @@ -541,8 +541,6 @@ public: String aBasicLibPath; // TODO: Should be member of manager, but currently not incompatible BasicLibInfo* GetObject( size_t i ); BasicLibInfo* First(); - BasicLibInfo* Last(); - BasicLibInfo* Prev(); BasicLibInfo* Next(); size_t GetPos( BasicLibInfo* LibInfo ); size_t Count() const { return aList.size(); }; @@ -575,24 +573,6 @@ BasicLibInfo* BasicLibs::First() return aList[ CurrentLib ]; } -BasicLibInfo* BasicLibs::Last() -{ - if ( aList.empty() ) - return NULL; - CurrentLib = aList.size() - 1; - return aList[ CurrentLib ]; -} - -BasicLibInfo* BasicLibs::Prev() -{ - if ( aList.empty() - || CurrentLib == 0 - ) - return NULL; - --CurrentLib; - return aList[ CurrentLib ]; -} - BasicLibInfo* BasicLibs::Next() { if ( aList.empty() @@ -914,14 +894,6 @@ BasicManager::BasicManager( StarBASIC* pSLib, String* pLibPath, sal_Bool bDocMgr bBasMgrModified = sal_False; } -BasicManager::BasicManager() -{ - DBG_CTOR( BasicManager, 0 ); - // This ctor may only be used to adapt relative paths for 'Save As'. - // There is no AppBasic so libs must not be loaded... - Init(); -} - void BasicManager::ImpMgrNotLoaded( const String& rStorageName ) { // pErrInf is only destroyed if the error os processed by an @@ -1745,12 +1717,6 @@ sal_Bool BasicManager::HasErrors() return pErrorMgr->HasErrors(); } -void BasicManager::ClearErrors() -{ - DBG_CHKTHIS( BasicManager, 0 ); - pErrorMgr->Reset(); -} - BasicError* BasicManager::GetFirstError() { DBG_CHKTHIS( BasicManager, 0 ); diff --git a/unotools/source/config/lingucfg.cxx b/unotools/source/config/lingucfg.cxx index 828c0736ccdb..cc08afdc934f 100644 --- a/unotools/source/config/lingucfg.cxx +++ b/unotools/source/config/lingucfg.cxx @@ -1382,7 +1382,7 @@ bool SvtLinguConfig::HasGrammarChecker() const uno::Sequence< rtl::OUString > aElementNames( xNA->getElementNames() ); bRes = aElementNames.getLength() > 0; } - catch (uno::Exception &) + catch (const uno::Exception&) { } diff --git a/unusedcode.easy b/unusedcode.easy index 6a599aacef90..cbce2632d017 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -1,11 +1,6 @@ (anonymous namespace)::getState(std::vector<cppcanvas::internal::OutDevState, std::allocator<cppcanvas::internal::OutDevState> > const&) (anonymous namespace)::writeInfo(com::sun::star::uno::Reference<com::sun::star::registry::XRegistryKey> const&, rtl::OUString const&, rtl::OUString const&) -Application::PostUserEvent(unsigned long, void*) BasicIDEDLL::~BasicIDEDLL() -BasicLibs::Last() -BasicLibs::Prev() -BasicManager::BasicManager() -BasicManager::ClearErrors() BitSet::BitSet(Range const&) BitSet::BitSet(unsigned short*, unsigned short) BitmapEx::Draw(OutputDevice*, Point const&, Size const&, Point const&, Size const&) const diff --git a/vcl/inc/vcl/svapp.hxx b/vcl/inc/vcl/svapp.hxx index 2c85dbb7de23..aca31df7aea4 100644 --- a/vcl/inc/vcl/svapp.hxx +++ b/vcl/inc/vcl/svapp.hxx @@ -296,7 +296,6 @@ public: static void RemoveMouseAndKeyEvents( Window *pWin ); static sal_Bool IsProcessedMouseOrKeyEvent( sal_uLong nEventId ); - static sal_uLong PostUserEvent( sal_uLong nEvent, void* pEventData = NULL ); static sal_uLong PostUserEvent( const Link& rLink, void* pCaller = NULL ); static sal_Bool PostUserEvent( sal_uLong& rEventId, sal_uLong nEvent, void* pEventData = NULL ); static sal_Bool PostUserEvent( sal_uLong& rEventId, const Link& rLink, void* pCaller = NULL ); diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx index 925ad70e199b..9af5f08bdbfa 100644 --- a/vcl/source/app/svapp.cxx +++ b/vcl/source/app/svapp.cxx @@ -1021,17 +1021,6 @@ sal_Bool Application::IsProcessedMouseOrKeyEvent( sal_uLong nEventId ) return sal_True; } -// ----------------------------------------------------------------------- - -sal_uLong Application::PostUserEvent( sal_uLong nEvent, void* pEventData ) -{ - sal_uLong nEventId; - PostUserEvent( nEventId, nEvent, pEventData ); - return nEventId; -} - -// ----------------------------------------------------------------------- - sal_uLong Application::PostUserEvent( const Link& rLink, void* pCaller ) { sal_uLong nEventId; |