diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-02-22 21:48:32 +0600 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-02-23 01:34:11 +0100 |
commit | b3e6bec35090a88e6ae3c06fc7bb9734bf996e4a (patch) | |
tree | d7dd217586ca882f029e48f92257372bc44f16e9 /basic | |
parent | 3b4a8977652b7e69469d0e56e12de50e07ceae2f (diff) |
Fix warning C4589 when building with MSVC without -Wv:18
Discovered by https://gerrit.libreoffice.org/c/core/+/163717
Like these:
C:\libcmis\inc\libcmis/document.hxx(51): warning C4589: Constructor of abstract class 'libcmis::Document' ignores initializer for virtual base class 'libcmis::Object'
C:\libcmis\inc\libcmis/document.hxx(51): note: virtual base classes are only initialized by the most-derived type
C:\libcmis\inc\libcmis/folder.hxx(58): warning C4589: Constructor of abstract class 'libcmis::Folder' ignores initializer for virtual base class 'libcmis::Object'
C:\libcmis\inc\libcmis/folder.hxx(58): note: virtual base classes are only initialized by the most-derived type
Change-Id: Icc7f94cc02796a86b47b025df69ec3db971ad11e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163777
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/sbx/sbxbase.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/basic/source/sbx/sbxbase.cxx b/basic/source/sbx/sbxbase.cxx index 3189977a6b8e..b90368f68f26 100644 --- a/basic/source/sbx/sbxbase.cxx +++ b/basic/source/sbx/sbxbase.cxx @@ -57,11 +57,7 @@ SbxBase::SbxBase() nFlags = SbxFlagBits::ReadWrite; } -SbxBase::SbxBase( const SbxBase& r ) - : SvRefBase( r ) -{ - nFlags = r.nFlags; -} +SbxBase::SbxBase(const SbxBase& r) = default; SbxBase::~SbxBase() { |