diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-26 14:44:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-02-29 08:04:06 +0200 |
commit | 1110346b3b8e57a190366aabebb62e53c6ab6d01 (patch) | |
tree | aa22f8f28cab116834e4222ef03206a7e0b0d29d /include/unotools | |
parent | 2b24b6b6c3b18d7d934b3f76cc7a787c498ece4a (diff) |
loplugin:unuseddefaultparam in unotools
Change-Id: Icb2dc74263026d90b7998b3fd880fd5d2c67a3b7
Diffstat (limited to 'include/unotools')
-rw-r--r-- | include/unotools/confignode.hxx | 2 | ||||
-rw-r--r-- | include/unotools/fontcfg.hxx | 5 | ||||
-rw-r--r-- | include/unotools/fontcvt.hxx | 8 | ||||
-rw-r--r-- | include/unotools/ucbhelper.hxx | 2 | ||||
-rw-r--r-- | include/unotools/ucbstreamhelper.hxx | 9 |
5 files changed, 9 insertions, 17 deletions
diff --git a/include/unotools/confignode.hxx b/include/unotools/confignode.hxx index d46ecda77121..264842d3b739 100644 --- a/include/unotools/confignode.hxx +++ b/include/unotools/confignode.hxx @@ -279,7 +279,7 @@ namespace utl given node path does not exist) are still asserted.</p> */ static OConfigurationTreeRoot tryCreateWithComponentContext( const css::uno::Reference< css::uno::XComponentContext >& rxContext, - const OUString& _rPath, sal_Int32 _nDepth = -1, CREATION_MODE _eMode = CM_UPDATABLE, bool _bLazyWrite = true ); + const OUString& _rPath, sal_Int32 _nDepth = -1, CREATION_MODE _eMode = CM_UPDATABLE ); /** commit all changes made on the subtree the object is the root for<p/> All changes made on any OConfigurationNode object retrieved (maybe indirect) from this root diff --git a/include/unotools/fontcfg.hxx b/include/unotools/fontcfg.hxx index a37242932dfa..4b388b79ed79 100644 --- a/include/unotools/fontcfg.hxx +++ b/include/unotools/fontcfg.hxx @@ -173,10 +173,7 @@ public: static FontSubstConfiguration& get(); - const FontNameAttr* getSubstInfo( - const OUString& rFontName, - const LanguageTag& rLanguageTag = LanguageTag( OUString( "en")) - ) const; + const FontNameAttr* getSubstInfo( const OUString& rFontName ) const; static void getMapName( const OUString& rOrgName, OUString& rShortName, OUString& rFamilyName, FontWeight& rWeight, FontWidth& rWidth, ImplFontAttrs& rType ); }; diff --git a/include/unotools/fontcvt.hxx b/include/unotools/fontcvt.hxx index d8080734ea5e..df8003b2063a 100644 --- a/include/unotools/fontcvt.hxx +++ b/include/unotools/fontcvt.hxx @@ -57,13 +57,11 @@ public: }; -// with bPerfect set the converter will only try and convert symbols which have -// perfect mappings to the windows symbols fonts. With it not set, it will -// allow somewhat more dubious transformations that are nevertheless -// recognizably similar. Even in this mode there will be characters that fail. +// The converter will allow somewhat dubious mappings to the the windows symbols fonts, +// that are nevertheless recognizably similar. Even in this mode there will be characters that fail. // The users of this might want to make a distinction between failed characters // which were inside and those outside the unicode private area. -UNOTOOLS_DLLPUBLIC StarSymbolToMSMultiFont *CreateStarSymbolToMSMultiFont(bool bPerfectOnly=false); +UNOTOOLS_DLLPUBLIC StarSymbolToMSMultiFont *CreateStarSymbolToMSMultiFont(); #endif // INCLUDED_UNOTOOLS_FONTCVT_HXX diff --git a/include/unotools/ucbhelper.hxx b/include/unotools/ucbhelper.hxx index 1b25c54369e6..e7cd434316a2 100644 --- a/include/unotools/ucbhelper.hxx +++ b/include/unotools/ucbhelper.hxx @@ -57,7 +57,7 @@ UNOTOOLS_DLLPUBLIC css::uno::Any GetProperty( UNOTOOLS_DLLPUBLIC bool MakeFolder( ucbhelper::Content & parent, OUString const & title, - ucbhelper::Content & result, bool exclusive = false); + ucbhelper::Content & result); /// like mkdir -p UNOTOOLS_DLLPUBLIC bool ensureFolder( diff --git a/include/unotools/ucbstreamhelper.hxx b/include/unotools/ucbstreamhelper.hxx index 47e34bc830b7..2e8308b13a3b 100644 --- a/include/unotools/ucbstreamhelper.hxx +++ b/include/unotools/ucbstreamhelper.hxx @@ -52,14 +52,11 @@ namespace utl class UNOTOOLS_DLLPUBLIC UcbStreamHelper : public SvStream { public: + static SvStream* CreateStream( const OUString& rFileName, StreamMode eOpenMode ); static SvStream* CreateStream( const OUString& rFileName, StreamMode eOpenMode, - UcbLockBytesHandler* pHandler=nullptr ); + css::uno::Reference < css::task::XInteractionHandler > ); static SvStream* CreateStream( const OUString& rFileName, StreamMode eOpenMode, - css::uno::Reference < css::task::XInteractionHandler >, - UcbLockBytesHandler* pHandler=nullptr ); - static SvStream* CreateStream( const OUString& rFileName, StreamMode eOpenMode, - bool bFileExists, - UcbLockBytesHandler* pHandler=nullptr ); + bool bFileExists ); static SvStream* CreateStream( css::uno::Reference < css::io::XInputStream > xStream ); static SvStream* CreateStream( css::uno::Reference < css::io::XStream > xStream ); static SvStream* CreateStream( css::uno::Reference < css::io::XInputStream > xStream, bool bCloseStream ); |