summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-10-20 19:37:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-10-21 20:12:03 +0200
commitf222cec758f62537b96d7681671f60212cc62a89 (patch)
tree4621eb28a670576a735e030587cc810c23cd4e37
parent99e4145c5f842bc8416719258089f9bdb696602e (diff)
pvs-studio: Not all members of a class are initialized inside the constructor
Change-Id: I914c715c96a6701995212fdb76615a19c984a128 Reviewed-on: https://gerrit.libreoffice.org/62113 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--connectivity/source/drivers/mysqlc/mysqlc_connection.hxx6
-rw-r--r--vcl/win/app/salinst.cxx1
2 files changed, 7 insertions, 0 deletions
diff --git a/connectivity/source/drivers/mysqlc/mysqlc_connection.hxx b/connectivity/source/drivers/mysqlc/mysqlc_connection.hxx
index 6c8632c29492..ed96d5e42290 100644
--- a/connectivity/source/drivers/mysqlc/mysqlc_connection.hxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_connection.hxx
@@ -65,12 +65,18 @@ typedef css::uno::Reference<css::container::XNameAccess> my_XNameAccessRef;
typedef ::cppu::WeakComponentImplHelper3<css::sdbc::XConnection, css::sdbc::XWarningsSupplier,
css::lang::XServiceInfo>
OMetaConnection_BASE;
+
struct ConnectionSettings
{
rtl_TextEncoding encoding;
rtl::OUString schema;
rtl::OUString connectionURL;
bool readOnly;
+ ConnectionSettings()
+ : encoding(RTL_TEXTENCODING_DONTKNOW)
+ , readOnly(false)
+ {
+ }
};
class MysqlCDriver;
diff --git a/vcl/win/app/salinst.cxx b/vcl/win/app/salinst.cxx
index d5fca66f6bd2..7011f8b2404b 100644
--- a/vcl/win/app/salinst.cxx
+++ b/vcl/win/app/salinst.cxx
@@ -388,6 +388,7 @@ VCLPLUG_WIN_PUBLIC SalInstance* create_SalInstance()
WinSalInstance::WinSalInstance()
: SalInstance(o3tl::make_unique<SalYieldMutex>())
+ , mhInst( nullptr )
, mhComWnd( nullptr )
, m_nNoYieldLock( 0 )
{