summaryrefslogtreecommitdiff
path: root/cui/source/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-19 15:59:46 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-03-20 13:45:32 +0100
commitbeafe72de3427f20c0cb59f7c7ff7852ebcc7427 (patch)
tree5634bf2b103248f8268748f31d9cb4fcd41d2873 /cui/source/inc
parent55a96efaacd2e932c7616f6a6072f794266f5948 (diff)
cid#1473926 Uninitialized scalar variable
Change-Id: I75911b7eff074b684a7f9c854fe8e63d102ae01a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112780 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source/inc')
-rw-r--r--cui/source/inc/autocdlg.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/cui/source/inc/autocdlg.hxx b/cui/source/inc/autocdlg.hxx
index 86218a58a581..b084bdbd685a 100644
--- a/cui/source/inc/autocdlg.hxx
+++ b/cui/source/inc/autocdlg.hxx
@@ -135,6 +135,12 @@ struct DoubleString
OUString sShort;
OUString sLong;
void* pUserData; ///< CheckBox -> form. Text Bool -> selection text
+ DoubleString(const OUString& rShort, const OUString& rLong)
+ : sShort(rShort)
+ , sLong(rLong)
+ , pUserData(nullptr)
+ {
+ }
};
typedef std::vector<DoubleString> DoubleStringArray;