diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/comphelper/SetFlagContextHelper.hxx | 8 | ||||
-rw-r--r-- | include/comphelper/anycompare.hxx | 5 | ||||
-rw-r--r-- | include/comphelper/asyncnotification.hxx | 5 | ||||
-rw-r--r-- | include/comphelper/container.hxx | 2 | ||||
-rw-r--r-- | include/comphelper/enumhelper.hxx | 6 | ||||
-rw-r--r-- | include/comphelper/interaction.hxx | 4 | ||||
-rw-r--r-- | include/comphelper/mimeconfighelper.hxx | 2 | ||||
-rw-r--r-- | include/comphelper/propertysethelper.hxx | 2 | ||||
-rw-r--r-- | include/comphelper/propertysetinfo.hxx | 4 | ||||
-rw-r--r-- | include/comphelper/seekableinput.hxx | 4 | ||||
-rw-r--r-- | include/comphelper/stillreadwriteinteraction.hxx | 2 | ||||
-rw-r--r-- | include/comphelper/string.hxx | 2 | ||||
-rw-r--r-- | include/comphelper/threadpool.hxx | 2 | ||||
-rw-r--r-- | include/comphelper/traceevent.hxx | 5 | ||||
-rw-r--r-- | include/comphelper/unique_disposing_ptr.hxx | 5 | ||||
-rw-r--r-- | include/comphelper/weakeventlistener.hxx | 5 |
16 files changed, 34 insertions, 29 deletions
diff --git a/include/comphelper/SetFlagContextHelper.hxx b/include/comphelper/SetFlagContextHelper.hxx index 1f1e2743cea9..b1b15eabba26 100644 --- a/include/comphelper/SetFlagContextHelper.hxx +++ b/include/comphelper/SetFlagContextHelper.hxx @@ -13,6 +13,7 @@ #include <com/sun/star/uno/XCurrentContext.hpp> #include <cppuhelper/implbase.hxx> #include <uno/current_context.hxx> +#include <utility> namespace comphelper { @@ -20,10 +21,9 @@ namespace comphelper class SetFlagContext final : public cppu::WeakImplHelper<css::uno::XCurrentContext> { public: - explicit SetFlagContext(const OUString& sName, - css::uno::Reference<css::uno::XCurrentContext> const& xContext) - : m_sName(sName) - , mxNextContext(xContext) + explicit SetFlagContext(OUString sName, css::uno::Reference<css::uno::XCurrentContext> xContext) + : m_sName(std::move(sName)) + , mxNextContext(std::move(xContext)) { } SetFlagContext(const SetFlagContext&) = delete; diff --git a/include/comphelper/anycompare.hxx b/include/comphelper/anycompare.hxx index 782c7f19951f..3618106db34f 100644 --- a/include/comphelper/anycompare.hxx +++ b/include/comphelper/anycompare.hxx @@ -28,6 +28,7 @@ #include <comphelper/extract.hxx> #include <memory> +#include <utility> namespace comphelper @@ -103,8 +104,8 @@ namespace comphelper class StringCollationPredicateLess final : public IKeyPredicateLess { public: - StringCollationPredicateLess( css::uno::Reference< css::i18n::XCollator > const & i_collator ) - :m_collator( i_collator ) + StringCollationPredicateLess( css::uno::Reference< css::i18n::XCollator > i_collator ) + :m_collator(std::move( i_collator )) { } diff --git a/include/comphelper/asyncnotification.hxx b/include/comphelper/asyncnotification.hxx index 891495319c27..ea6b067ccd94 100644 --- a/include/comphelper/asyncnotification.hxx +++ b/include/comphelper/asyncnotification.hxx @@ -28,6 +28,7 @@ #include <salhelper/thread.hxx> #include <salhelper/simplereferenceobject.hxx> #include <memory> +#include <utility> namespace comphelper { @@ -207,8 +208,8 @@ namespace comphelper EventObjectType const m_aEvent; public: - EventHolder( const EventObjectType& _rEvent ) - :m_aEvent( _rEvent ) + EventHolder( EventObjectType _aEvent ) + :m_aEvent(std::move( _aEvent )) { } diff --git a/include/comphelper/container.hxx b/include/comphelper/container.hxx index 03a7e96de77c..84acfc5b0fc5 100644 --- a/include/comphelper/container.hxx +++ b/include/comphelper/container.hxx @@ -47,7 +47,7 @@ protected: // That is the path from the root node to m_xCurrentObject public: - IndexAccessIterator(css::uno::Reference< css::uno::XInterface> const & xStartingPoint); + IndexAccessIterator(css::uno::Reference< css::uno::XInterface> xStartingPoint); virtual ~IndexAccessIterator(); diff --git a/include/comphelper/enumhelper.hxx b/include/comphelper/enumhelper.hxx index cf89e90fe11d..fb26de48971d 100644 --- a/include/comphelper/enumhelper.hxx +++ b/include/comphelper/enumhelper.hxx @@ -48,8 +48,8 @@ class COMPHELPER_DLLPUBLIC OEnumerationByName final : std::mutex m_aLock; public: - OEnumerationByName(const css::uno::Reference< css::container::XNameAccess >& _rxAccess); - OEnumerationByName(const css::uno::Reference< css::container::XNameAccess >& _rxAccess, + OEnumerationByName(const css::uno::Reference< css::container::XNameAccess > _xAccess); + OEnumerationByName(const css::uno::Reference< css::container::XNameAccess > _xAccess, std::vector<OUString> _aNames ); virtual ~OEnumerationByName() override; @@ -78,7 +78,7 @@ class COMPHELPER_DLLPUBLIC OEnumerationByIndex final : std::mutex m_aLock; public: - OEnumerationByIndex(const css::uno::Reference< css::container::XIndexAccess >& _rxAccess); + OEnumerationByIndex(css::uno::Reference< css::container::XIndexAccess > _xAccess); virtual ~OEnumerationByIndex() override; virtual sal_Bool SAL_CALL hasMoreElements( ) override; diff --git a/include/comphelper/interaction.hxx b/include/comphelper/interaction.hxx index 4c9f61948c80..0f783e946daf 100644 --- a/include/comphelper/interaction.hxx +++ b/include/comphelper/interaction.hxx @@ -98,8 +98,8 @@ namespace comphelper m_aContinuations; /// all registered continuations public: - OInteractionRequest(const css::uno::Any& _rRequestDescription); - OInteractionRequest(const css::uno::Any& rRequestDescription, + OInteractionRequest(css::uno::Any aRequestDescription); + OInteractionRequest(css::uno::Any aRequestDescription, std::vector<css::uno::Reference<css::task::XInteractionContinuation>>&& rContinuations); /// add a new continuation diff --git a/include/comphelper/mimeconfighelper.hxx b/include/comphelper/mimeconfighelper.hxx index 83f5c41cb267..5dd99664a70a 100644 --- a/include/comphelper/mimeconfighelper.hxx +++ b/include/comphelper/mimeconfighelper.hxx @@ -50,7 +50,7 @@ class COMPHELPER_DLLPUBLIC MimeConfigurationHelper public: - MimeConfigurationHelper( const css::uno::Reference< css::uno::XComponentContext >& rxContext ); + MimeConfigurationHelper( css::uno::Reference< css::uno::XComponentContext > xContext ); static OUString GetStringClassIDRepresentation( const css::uno::Sequence< sal_Int8 >& aClassID ); diff --git a/include/comphelper/propertysethelper.hxx b/include/comphelper/propertysethelper.hxx index 131465dc0f46..a4746a02fad9 100644 --- a/include/comphelper/propertysethelper.hxx +++ b/include/comphelper/propertysethelper.hxx @@ -62,7 +62,7 @@ protected: virtual css::uno::Any _getPropertyDefault( const comphelper::PropertyMapEntry* pEntry ); public: - PropertySetHelper( rtl::Reference<comphelper::PropertySetInfo> const & xInfo ) noexcept; + PropertySetHelper( rtl::Reference<comphelper::PropertySetInfo> xInfo ) noexcept; virtual ~PropertySetHelper() noexcept; // XPropertySet diff --git a/include/comphelper/propertysetinfo.hxx b/include/comphelper/propertysetinfo.hxx index 82bbb81cd6c4..4f7ac39c29f3 100644 --- a/include/comphelper/propertysetinfo.hxx +++ b/include/comphelper/propertysetinfo.hxx @@ -28,7 +28,7 @@ #include <o3tl/span.hxx> #include <o3tl/typed_flags_set.hxx> #include <unordered_map> -#include <vector> +#include <utility> enum class PropertyMoreFlags : sal_uInt8 { NONE = 0x00, @@ -53,7 +53,7 @@ struct PropertyMapEntry PropertyMapEntry(OUString _aName, sal_Int32 _nHandle, css::uno::Type const & _rType, sal_Int16 _nAttributes, sal_uInt8 _nMemberId, PropertyMoreFlags _nMoreFlags = PropertyMoreFlags::NONE) - : maName( _aName ) + : maName(std::move( _aName )) , maType( _rType ) , mnHandle( _nHandle ) , mnAttributes( _nAttributes ) diff --git a/include/comphelper/seekableinput.hxx b/include/comphelper/seekableinput.hxx index 5c2e6be07c6e..0c2092f7b849 100644 --- a/include/comphelper/seekableinput.hxx +++ b/include/comphelper/seekableinput.hxx @@ -53,8 +53,8 @@ private: public: OSeekableInputWrapper( - const css::uno::Reference< css::io::XInputStream >& xInStream, - const css::uno::Reference< css::uno::XComponentContext >& rxContext ); + css::uno::Reference< css::io::XInputStream > xInStream, + css::uno::Reference< css::uno::XComponentContext > xContext ); virtual ~OSeekableInputWrapper() override; diff --git a/include/comphelper/stillreadwriteinteraction.hxx b/include/comphelper/stillreadwriteinteraction.hxx index 2bc8fa4f049e..fb03a7ad1d84 100644 --- a/include/comphelper/stillreadwriteinteraction.hxx +++ b/include/comphelper/stillreadwriteinteraction.hxx @@ -43,7 +43,7 @@ private: public: StillReadWriteInteraction(const css::uno::Reference< css::task::XInteractionHandler >& xHandler, - const css::uno::Reference< css::task::XInteractionHandler >& xAuxiliaryHandler); + css::uno::Reference< css::task::XInteractionHandler > xAuxiliaryHandler); void resetInterceptions(); void resetErrorStates(); diff --git a/include/comphelper/string.hxx b/include/comphelper/string.hxx index 86ca9c4d8ecb..cbed62679f3c 100644 --- a/include/comphelper/string.hxx +++ b/include/comphelper/string.hxx @@ -350,7 +350,7 @@ private: public: NaturalStringSorter( const css::uno::Reference< css::uno::XComponentContext > &rContext, - const css::lang::Locale &rLocale); + css::lang::Locale aLocale); sal_Int32 compare(const OUString &rLHS, const OUString &rRHS) const { return compareNatural(rLHS, rRHS, m_xCollator, m_xBI, m_aLocale); diff --git a/include/comphelper/threadpool.hxx b/include/comphelper/threadpool.hxx index ec128b1422bd..a3c3091ce483 100644 --- a/include/comphelper/threadpool.hxx +++ b/include/comphelper/threadpool.hxx @@ -36,7 +36,7 @@ protected: /// once pushed ThreadTasks are destroyed by the pool virtual ~ThreadTask() {} public: - ThreadTask(const std::shared_ptr<ThreadTaskTag>& pTag); + ThreadTask(std::shared_ptr<ThreadTaskTag> pTag); }; /// A very basic thread-safe thread pool implementation diff --git a/include/comphelper/traceevent.hxx b/include/comphelper/traceevent.hxx index 665118636ca1..a0fe9cae1d16 100644 --- a/include/comphelper/traceevent.hxx +++ b/include/comphelper/traceevent.hxx @@ -15,6 +15,7 @@ #include <atomic> #include <map> #include <memory> +#include <utility> #include <vector> #include <osl/process.h> @@ -84,9 +85,9 @@ protected: const int m_nPid; const OUString m_sArgs; - TraceEvent(const OUString& sArgs) + TraceEvent(OUString sArgs) : m_nPid(s_bRecording ? getPid() : 1) - , m_sArgs(sArgs) + , m_sArgs(std::move(sArgs)) { } diff --git a/include/comphelper/unique_disposing_ptr.hxx b/include/comphelper/unique_disposing_ptr.hxx index 7bed79c43110..5994799fc4bb 100644 --- a/include/comphelper/unique_disposing_ptr.hxx +++ b/include/comphelper/unique_disposing_ptr.hxx @@ -18,6 +18,7 @@ #include <com/sun/star/lang/XServiceInfo.hpp> #include <o3tl/deleter.hxx> +#include <utility> #include <vcl/svapp.hxx> namespace comphelper @@ -76,9 +77,9 @@ private: unique_disposing_ptr<T>& m_rItem; bool const mbComponentDLL; public: - TerminateListener(const css::uno::Reference< css::lang::XComponent > &rComponent, + TerminateListener(css::uno::Reference< css::lang::XComponent > xComponent, unique_disposing_ptr<T>& rItem, bool bComponentDLL) : - m_xComponent(rComponent), + m_xComponent(std::move(xComponent)), m_rItem(rItem), mbComponentDLL(bComponentDLL) { diff --git a/include/comphelper/weakeventlistener.hxx b/include/comphelper/weakeventlistener.hxx index dc26966115fc..d64f302d8066 100644 --- a/include/comphelper/weakeventlistener.hxx +++ b/include/comphelper/weakeventlistener.hxx @@ -27,6 +27,7 @@ #include <comphelper/comphelperdllapi.h> #include <com/sun/star/lang/XEventListener.hpp> #include <com/sun/star/lang/XComponent.hpp> +#include <utility> namespace com::sun::star::uno { class XWeak; } @@ -73,10 +74,10 @@ namespace comphelper protected: OWeakListenerAdapterBase( const css::uno::Reference< css::uno::XWeak >& _rxListener, - const css::uno::Reference< css::uno::XInterface >& _rxBroadcaster + css::uno::Reference< css::uno::XInterface > _xBroadcaster ) :m_aListener ( _rxListener ) - ,m_xBroadcaster ( _rxBroadcaster ) + ,m_xBroadcaster (std::move( _xBroadcaster )) { } |