From e9cb5577f4c1be0f59863ec5ccb68e8794a2f117 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 1 Apr 2015 16:23:59 +0200 Subject: loplugin:staticmethods Change-Id: Ibf0c73ac17ec19ed672f66907db47057920babca --- svl/source/config/itemholder2.hxx | 4 ++-- svl/source/fsstor/fsstorage.hxx | 2 +- svl/source/inc/passwordcontainer.hxx | 8 ++++---- svl/source/misc/inethist.cxx | 2 +- svl/source/numbers/zforfind.hxx | 12 ++++++------ 5 files changed, 14 insertions(+), 14 deletions(-) (limited to 'svl/source') diff --git a/svl/source/config/itemholder2.hxx b/svl/source/config/itemholder2.hxx index b2b304527647..a4f837270bd1 100644 --- a/svl/source/config/itemholder2.hxx +++ b/svl/source/config/itemholder2.hxx @@ -50,8 +50,8 @@ class ItemHolder2 : private ItemHolderMutexBase void impl_addItem(EItem eItem); void impl_releaseAllItems(); - void impl_newItem(TItemInfo& rItem); - void impl_deleteItem(TItemInfo& rItem); + static void impl_newItem(TItemInfo& rItem); + static void impl_deleteItem(TItemInfo& rItem); }; #endif // INCLUDED_SVTOOLS_ITEMHOLDER2_HXX_ diff --git a/svl/source/fsstor/fsstorage.hxx b/svl/source/fsstor/fsstorage.hxx index 932ffda73cba..28ba70b60294 100644 --- a/svl/source/fsstor/fsstorage.hxx +++ b/svl/source/fsstor/fsstorage.hxx @@ -57,7 +57,7 @@ public: ::ucbhelper::Content* GetContent(); - void CopyStreamToSubStream( const OUString& aSourceURL, + static void CopyStreamToSubStream( const OUString& aSourceURL, const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xDest, const OUString& aNewEntryName ); diff --git a/svl/source/inc/passwordcontainer.hxx b/svl/source/inc/passwordcontainer.hxx index 86b26d76c5f4..b5fe90a5c708 100644 --- a/svl/source/inc/passwordcontainer.hxx +++ b/svl/source/inc/passwordcontainer.hxx @@ -274,9 +274,9 @@ bool createUrlRecord( bool bName, // only needed to support empty user names const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& aHandler ) throw(::com::sun::star::uno::RuntimeException); - OUString GetDefaultMasterPassword(); + static OUString GetDefaultMasterPassword(); - OUString RequestPasswordFromUser( + static OUString RequestPasswordFromUser( ::com::sun::star::task::PasswordRequestMode aRMode, const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& xHandler ); @@ -293,10 +293,10 @@ bool createUrlRecord( const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& Handler ) throw(::com::sun::star::uno::RuntimeException); - ::std::vector< OUString > DecodePasswords( const OUString& aLine, const OUString& aMasterPassword ) + static ::std::vector< OUString > DecodePasswords( const OUString& aLine, const OUString& aMasterPassword ) throw(::com::sun::star::uno::RuntimeException); - OUString EncodePasswords(const std::vector< OUString >& lines, const OUString& aMasterPassword ) + static OUString EncodePasswords(const std::vector< OUString >& lines, const OUString& aMasterPassword ) throw(::com::sun::star::uno::RuntimeException); public: diff --git a/svl/source/misc/inethist.cxx b/svl/source/misc/inethist.cxx index 4d531c931a58..3987cbb2384e 100644 --- a/svl/source/misc/inethist.cxx +++ b/svl/source/misc/inethist.cxx @@ -128,7 +128,7 @@ class INetURLHistory_Impl: private boost::noncopyable return (sal_uInt16)(INETHIST_SIZE_LIMIT); } - sal_uInt32 crc32 (OUString const & rData) const + static sal_uInt32 crc32 (OUString const & rData) { return rtl_crc32 (0, rData.getStr(), rData.getLength() * sizeof(sal_Unicode)); } diff --git a/svl/source/numbers/zforfind.hxx b/svl/source/numbers/zforfind.hxx index 1f03fb9e15ff..c9f260a37c42 100644 --- a/svl/source/numbers/zforfind.hxx +++ b/svl/source/numbers/zforfind.hxx @@ -192,12 +192,12 @@ private: // decimal separator has to be '.' // If bForceFraction==true the string is taken to be the fractional part // of 0.1234 without the leading 0. (thus being just "1234"). - double StringToDouble( const OUString& rStr, - bool bForceFraction = false ); + static double StringToDouble( const OUString& rStr, + bool bForceFraction = false ); // Next number/string symbol - bool NextNumberStringSymbol( const sal_Unicode*& pStr, - OUString& rSymbol ); + static bool NextNumberStringSymbol( const sal_Unicode*& pStr, + OUString& rSymbol ); // Concatenate ,000,23 blocks // in input to 000123 @@ -310,8 +310,8 @@ private: sal_Int32& nPos ); // Get sign of exponent and advance string position - short GetESign( const OUString& rString, - sal_Int32& nPos ); + static short GetESign( const OUString& rString, + sal_Int32& nPos ); // Get next number as array offset inline bool GetNextNumber( sal_uInt16& i, -- cgit v1.2.3