summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-12-07 09:16:39 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-12-07 10:51:03 +0100
commit3ee2868a0a27d27daa3845ce979ff5f862ca7f66 (patch)
treefa9bad23b53142585f4c62478089c32eb5f39eb4 /extensions
parent5cfac9be8a55348e7d3bc773aae5bff6b1739080 (diff)
loplugin:stringviewparam (clang-cl)
Change-Id: Ie29f1a5a66dd53d1e1fc9332ca4b817fa4eb43de Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107332 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/ole/oleobjw.cxx6
-rw-r--r--extensions/source/ole/oleobjw.hxx7
2 files changed, 7 insertions, 6 deletions
diff --git a/extensions/source/ole/oleobjw.cxx b/extensions/source/ole/oleobjw.cxx
index 3985f51bc015..91f136a8a235 100644
--- a/extensions/source/ole/oleobjw.cxx
+++ b/extensions/source/ole/oleobjw.cxx
@@ -1521,7 +1521,7 @@ Reference<XInterface> IUnknownWrapper::createComWrapperInstance()
}
-void IUnknownWrapper::getMethodInfo(const OUString& sName, TypeDescription& methodInfo)
+void IUnknownWrapper::getMethodInfo(std::u16string_view sName, TypeDescription& methodInfo)
{
TypeDescription desc= getInterfaceMemberDescOfCurrentCall(sName);
if( desc.is())
@@ -1532,7 +1532,7 @@ void IUnknownWrapper::getMethodInfo(const OUString& sName, TypeDescription& meth
}
}
-void IUnknownWrapper::getAttributeInfo(const OUString& sName, TypeDescription& attributeInfo)
+void IUnknownWrapper::getAttributeInfo(std::u16string_view sName, TypeDescription& attributeInfo)
{
TypeDescription desc= getInterfaceMemberDescOfCurrentCall(sName);
if( desc.is())
@@ -1544,7 +1544,7 @@ void IUnknownWrapper::getAttributeInfo(const OUString& sName, TypeDescription& a
}
}
}
-TypeDescription IUnknownWrapper::getInterfaceMemberDescOfCurrentCall(const OUString& sName)
+TypeDescription IUnknownWrapper::getInterfaceMemberDescOfCurrentCall(std::u16string_view sName)
{
TypeDescription ret;
diff --git a/extensions/source/ole/oleobjw.hxx b/extensions/source/ole/oleobjw.hxx
index 86e74cb56e19..b92039de4142 100644
--- a/extensions/source/ole/oleobjw.hxx
+++ b/extensions/source/ole/oleobjw.hxx
@@ -23,6 +23,7 @@
#include "ole2uno.hxx"
#include "wincrap.hxx"
+#include <string_view>
#include <unordered_map>
#include <vector>
@@ -149,11 +150,11 @@ protected:
// These functions are for the case if an object of this class wraps an IDispatch
// object that implements UNO interfaces. In that case the member m_seqTypes
// is set through XInitialization::initialize.
- void getMethodInfo(const OUString& sName, TypeDescription& methodDescription);
+ void getMethodInfo(std::u16string_view sName, TypeDescription& methodDescription);
// After return attributInfo contains typelib_InterfaceAttributeTypeDescription::pAttributeTypeRef
- void getAttributeInfo(const OUString& sName, TypeDescription& attributeInfo);
+ void getAttributeInfo(std::u16string_view sName, TypeDescription& attributeInfo);
// used by get MethodInfo
- TypeDescription getInterfaceMemberDescOfCurrentCall(const OUString& sName);
+ TypeDescription getInterfaceMemberDescOfCurrentCall(std::u16string_view sName);
/** Returns always a valid ITypeInfo interface or throws a BridgeRuntimeError.
The returned interface does not need to be AddRef'ed as long as it is locally
used. The interface is kept in the instance of this class.