diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-10-20 19:37:58 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-10-21 20:12:03 +0200 |
commit | f222cec758f62537b96d7681671f60212cc62a89 (patch) | |
tree | 4621eb28a670576a735e030587cc810c23cd4e37 /connectivity | |
parent | tdf#120703 (PVS): redundant nullptr check (diff) | |
download | core-f222cec758f62537b96d7681671f60212cc62a89.tar.gz core-f222cec758f62537b96d7681671f60212cc62a89.zip |
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>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/mysqlc/mysqlc_connection.hxx | 6 |
1 files changed, 6 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; |