summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2019-05-23 18:43:16 +0300
committerTor Lillqvist <tml@collabora.com>2019-05-23 19:48:58 +0300
commit479a93f6a3a9844688e676acdb9bef557f8c5210 (patch)
tree0bba379bccf95623357a186ee801cd4045f55f8b /vcl
parent4c1479d63972aaea0b1bfee1ffb56b530ca05655 (diff)
Drop default values for parameters that are defaulted only once
Seriously, such default values only serve to confuse the code reader. Change-Id: I478442514baac3159ea0ae20132222ae58b38b8c
Diffstat (limited to 'vcl')
-rw-r--r--vcl/osx/clipboard.hxx4
-rw-r--r--vcl/osx/service_entry.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/osx/clipboard.hxx b/vcl/osx/clipboard.hxx
index ca106691fa0b..2bfbd6cf678d 100644
--- a/vcl/osx/clipboard.hxx
+++ b/vcl/osx/clipboard.hxx
@@ -78,8 +78,8 @@ public:
system clipboard will be created (bUseSystemClipboard == true) or if
the DragPasteboard if bUseSystemClipboard == false
*/
- AquaClipboard(NSPasteboard* pasteboard = nullptr,
- bool bUseSystemClipboard = true);
+ AquaClipboard(NSPasteboard* pasteboard,
+ bool bUseSystemClipboard);
virtual ~AquaClipboard() override;
AquaClipboard(const AquaClipboard&) = delete;
diff --git a/vcl/osx/service_entry.cxx b/vcl/osx/service_entry.cxx
index 50f8498c2f63..eebb675ce9d2 100644
--- a/vcl/osx/service_entry.cxx
+++ b/vcl/osx/service_entry.cxx
@@ -41,7 +41,7 @@ uno::Reference< XInterface > AquaSalInstance::CreateClipboard( const Sequence< A
SalData* pSalData = GetSalData();
if( ! pSalData->mxClipboard.is() )
- pSalData->mxClipboard.set(static_cast< XClipboard* >(new AquaClipboard()), UNO_QUERY);
+ pSalData->mxClipboard.set(static_cast< XClipboard* >(new AquaClipboard(nullptr, true)), UNO_QUERY);
return pSalData->mxClipboard;
}