summaryrefslogtreecommitdiff
path: root/vcl/inc/unx/i18n_cb.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-03 15:59:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-06 05:48:02 +0000
commit8b2ffb280b494253dbdb8abd4230fbb6f1d78db0 (patch)
tree9b2c4ea2895a0b96bcd858387fc8a283a3e55d75 /vcl/inc/unx/i18n_cb.hxx
parent005ef926c692f790cd319130243cb053ef9af26c (diff)
loplugin:unusedenumconstants in vcl
- drop TTCR_GLYPHSEQ - drop ImageType::Invalid - give preedit_data_t a default constructor, so my plugin spots that the eState field is being initalised to DontKnow effectively by a memset - document ToolbarIconSize::Small as unused, but can't remove since it might be stored in a user-setting somewhere Change-Id: I94b34bba83a04de16f95e4faec95b4bd29f3c652 Reviewed-on: https://gerrit.libreoffice.org/33887 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/inc/unx/i18n_cb.hxx')
-rw-r--r--vcl/inc/unx/i18n_cb.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/inc/unx/i18n_cb.hxx b/vcl/inc/unx/i18n_cb.hxx
index 2ab73da7924d..a63905db5548 100644
--- a/vcl/inc/unx/i18n_cb.hxx
+++ b/vcl/inc/unx/i18n_cb.hxx
@@ -63,13 +63,15 @@ enum class PreeditStatus {
StartPending
};
-typedef struct {
+struct preedit_data_t {
SalFrame* pFrame;
PreeditStatus eState;
preedit_text_t aText;
SalExtTextInputEvent aInputEv;
std::vector< ExtTextInputAttr > aInputFlags;
-} preedit_data_t;
+
+ preedit_data_t() : eState(PreeditStatus::DontKnow) {}
+};
#endif // INCLUDED_VCL_INC_UNX_I18N_CB_HXX