]> git.ipfire.org Git - thirdparty/bacula.git/commit
win32: cleanup VSSClient constructor
authorAlain Spineux <alain@baculasystems.com>
Thu, 16 Feb 2023 10:50:56 +0000 (11:50 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:57:01 +0000 (13:57 +0200)
commit5fb662397a78f271cb3011abae1cbb9a36688541
tree4ce028160124d1a1e982d6b188a928be59e7587f
parente92c9562e52ea7ea369ec027594383f673b05ea1
win32: cleanup VSSClient constructor

- VSSClient is a pure class that has virtual methods, using a
  memset() to initialize the class is not appropriate because the object
  include a VPTR that is initialized by the constructor
- gcc 11.3 complains about that
- initializing the class the right way cannot be wrong
- Using C++11 in-member class initializers (we are not building win32 on
  centos 5 anymore but on modern platforms :-)
bacula/src/win32/filed/vss.cpp
bacula/src/win32/filed/vss.h