diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-16 11:14:05 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-03-16 10:27:43 +0000 |
commit | f958db475d19ac60f39616e075717c2fe3ee4839 (patch) | |
tree | 2665b94e4302d9853e4913a7e82a3f35017786f4 /include | |
parent | e41d23abb03a0c5a5c50be290c2265513e178889 (diff) |
loplugin:constantparam in unotools/
Change-Id: I016cf96af3a93c8f2114657a7e59599f68446ddc
Reviewed-on: https://gerrit.libreoffice.org/23296
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/unotools/atom.hxx | 2 | ||||
-rw-r--r-- | include/unotools/configvaluecontainer.hxx | 7 | ||||
-rw-r--r-- | include/unotools/localedatawrapper.hxx | 12 | ||||
-rw-r--r-- | include/unotools/streamhelper.hxx | 5 | ||||
-rw-r--r-- | include/unotools/tempfile.hxx | 2 | ||||
-rw-r--r-- | include/unotools/textsearch.hxx | 2 |
6 files changed, 6 insertions, 24 deletions
diff --git a/include/unotools/atom.hxx b/include/unotools/atom.hxx index f8f684cc3cca..a60ae008954f 100644 --- a/include/unotools/atom.hxx +++ b/include/unotools/atom.hxx @@ -51,7 +51,7 @@ namespace utl { MultiAtomProvider(); ~MultiAtomProvider(); - int getAtom( int atomClass, const OUString& rString, bool bCreate = false ); + int getAtom( int atomClass, const OUString& rString ); const OUString& getString( int atomClass, int atom ) const; }; diff --git a/include/unotools/configvaluecontainer.hxx b/include/unotools/configvaluecontainer.hxx index a481c65548b1..7cbe8970b2aa 100644 --- a/include/unotools/configvaluecontainer.hxx +++ b/include/unotools/configvaluecontainer.hxx @@ -92,7 +92,6 @@ namespace utl const css::uno::Reference< css::uno::XComponentContext >& _rxORB, ::osl::Mutex& _rAccessSafety, const sal_Char* _pConfigLocation, - const CVCFlags _nAccessFlags = CVCFlags::UPDATE_ACCESS | CVCFlags::LAZY_UPDATE, const sal_Int32 _nLevels = -1 ); @@ -142,14 +141,12 @@ namespace utl @precond The access must have been created for update access - @param _bCommit - If set to <TRUE/>, an automatic commit is done after the values have been synchronized.<br/> - If set to <FALSE/>, you must explicitly call <method>commit</method> to make your changes persistent. + You must explicitly call <method>commit</method> to make your changes persistent. @see read @see commit */ - void write( bool _bCommit = true ); + void write(); /** commits any changes done diff --git a/include/unotools/localedatawrapper.hxx b/include/unotools/localedatawrapper.hxx index a1f559149129..9d99f516af70 100644 --- a/include/unotools/localedatawrapper.hxx +++ b/include/unotools/localedatawrapper.hxx @@ -245,24 +245,12 @@ public: /** The CalendarWrapper already <b>MUST</b> have loaded a calendar. - @param nDisplayDayOfWeek - 0 := abbreviated name - 1 := full name - @param bDayOfMonthWithLeadingZero - <FALSE/> := without leading zero - <TRUE/> := with leading zero if <10 - @param nDisplayMonth - 0 := abbreviated name - 1 := full name @param bTwoDigitYear <FALSE/> := full year <TRUE/> := year % 100 */ OUString getLongDate( const Date& rDate, CalendarWrapper& rCal, - sal_Int16 nDisplayDayOfWeek = 1, - bool bDayOfMonthWithLeadingZero = false, - sal_Int16 nDisplayMonth = 1, bool bTwoDigitYear = false ) const; diff --git a/include/unotools/streamhelper.hxx b/include/unotools/streamhelper.hxx index 2fbd5dec550b..7b6091a48d77 100644 --- a/include/unotools/streamhelper.hxx +++ b/include/unotools/streamhelper.hxx @@ -47,10 +47,9 @@ class UNOTOOLS_DLLPUBLIC OInputStreamHelper : public InputStreamHelper_Base public: OInputStreamHelper(const SvLockBytesRef& _xLockBytes, - sal_uInt32 _nAvailable, - sal_uInt64 _nPos = 0) + sal_uInt32 _nAvailable) :m_xLockBytes(_xLockBytes) - ,m_nActPos(_nPos) + ,m_nActPos(0) ,m_nAvailable(_nAvailable){} // css::uno::XInterface diff --git a/include/unotools/tempfile.hxx b/include/unotools/tempfile.hxx index df4f4fbccd3f..40c880835a7e 100644 --- a/include/unotools/tempfile.hxx +++ b/include/unotools/tempfile.hxx @@ -67,7 +67,7 @@ public: The extension string may be f.e. ".txt" or "", if no extension string is given, ".tmp" is used @param _bStartWithZero If set to false names will be generated like "abc","abc0","abc1" */ - TempFile( const OUString& rLeadingChars, bool _bStartWithZero=true, const OUString* pExtension=nullptr, const OUString* pParent=nullptr, bool bDirectory=false); + TempFile( const OUString& rLeadingChars, bool _bStartWithZero=true, const OUString* pExtension=nullptr, const OUString* pParent=nullptr); /** TempFile will be removed from disk in dtor if EnableKillingFile(true) was called before. diff --git a/include/unotools/textsearch.hxx b/include/unotools/textsearch.hxx index 3a24aac648df..570efcb769b2 100644 --- a/include/unotools/textsearch.hxx +++ b/include/unotools/textsearch.hxx @@ -116,8 +116,6 @@ public: SearchParam( const OUString &rText, SearchType eSrchType = SearchParam::SRCH_NORMAL, bool bCaseSensitive = true, - bool bWordOnly = false, - bool bSearchInSelection = false, sal_uInt32 cWildEscChar = '\\', bool bWildMatchSel = false ); |