summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2019-09-18 23:00:27 +0200
committerMiklos Vajna <vmiklos@collabora.com>2019-09-19 08:59:29 +0200
commit10b457143a2848611ff4fd91c1e74ce8ba975e4e (patch)
tree1c641912aeed58edd45aa56ccdbc04d2849f9445 /desktop
parent8cd152e19ef7c6e2a45e67f937b690fd036bd549 (diff)
desktop: various small cleanups in lokclipboard
1) virtual is redundant when override is used 2) LOKTransferable::initFlavourFromMime() had different parameter names in the function declaration and definition 3) const-qualification on nInCount only had an effect in the function definition, not in the declaration Change-Id: I773f1f3cb5bac137a49c7e3b9ecb9b9bdf606268 Reviewed-on: https://gerrit.libreoffice.org/79111 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/lokclipboard.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/desktop/source/lib/lokclipboard.hxx b/desktop/source/lib/lokclipboard.hxx
index 0c237d822383..9688956c0ce6 100644
--- a/desktop/source/lib/lokclipboard.hxx
+++ b/desktop/source/lib/lokclipboard.hxx
@@ -41,9 +41,9 @@ public:
}
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName() override;
- virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
- virtual Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
+ OUString SAL_CALL getImplementationName() override;
+ sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
+ Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
static Sequence<OUString> getSupportedServiceNames_static();
// XClipboard
@@ -72,11 +72,11 @@ class LOKTransferable : public cppu::WeakImplHelper<css::datatransfer::XTransfer
css::uno::Sequence<css::datatransfer::DataFlavor> m_aFlavors;
std::vector<css::uno::Any> m_aContent;
- static void initFlavourFromMime(css::datatransfer::DataFlavor& rFlavor, OUString sMimeType);
+ static void initFlavourFromMime(css::datatransfer::DataFlavor& rFlavor, OUString aMimeType);
public:
LOKTransferable();
- LOKTransferable(const size_t nInCount, const char** pInMimeTypes, const size_t* pInSizes,
+ LOKTransferable(size_t nInCount, const char** pInMimeTypes, const size_t* pInSizes,
const char** pInStreams);
LOKTransferable(const OUString& sMimeType, const css::uno::Sequence<sal_Int8>& aSequence);