diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-05 16:11:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-06 06:47:21 +0100 |
commit | 83db9afa20b8cf54b522ca9c3f04e7e267684c59 (patch) | |
tree | cad0d77f0a76ce8f25e39d72be809f318677bbe2 /i18npool/source | |
parent | a2e3705d8b3b05ae664d54b762d6ff72927d5e48 (diff) |
remove some unnecessary typedef struct... sugar
Change-Id: I1576282b0a0a3af8ae14c04725d9c4900073f2c4
Reviewed-on: https://gerrit.libreoffice.org/68758
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool/source')
-rw-r--r-- | i18npool/source/nativenumber/nativenumbersupplier.cxx | 4 | ||||
-rw-r--r-- | i18npool/source/textconversion/genconv_dict.cxx | 4 | ||||
-rw-r--r-- | i18npool/source/textconversion/textconversion_ko.cxx | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/i18npool/source/nativenumber/nativenumbersupplier.cxx b/i18npool/source/nativenumber/nativenumbersupplier.cxx index 80fd575e115d..38ae3e116933 100644 --- a/i18npool/source/nativenumber/nativenumbersupplier.cxx +++ b/i18npool/source/nativenumber/nativenumbersupplier.cxx @@ -36,13 +36,13 @@ using namespace ::com::sun::star::uno; using namespace ::com::sun::star::i18n; using namespace ::com::sun::star::lang; -typedef struct { +struct Number { sal_Int16 number; const sal_Unicode *multiplierChar; sal_Int16 numberFlag; sal_Int16 exponentCount; const sal_Int16 *multiplierExponent; -} Number; +}; #define NUMBER_OMIT_ZERO (1 << 0) diff --git a/i18npool/source/textconversion/genconv_dict.cxx b/i18npool/source/textconversion/genconv_dict.cxx index 40e8cd99a9d3..f165c3195c59 100644 --- a/i18npool/source/textconversion/genconv_dict.cxx +++ b/i18npool/source/textconversion/genconv_dict.cxx @@ -321,11 +321,11 @@ void make_stc_char(FILE *sfp, FILE *cfp) } -typedef struct { +struct Index { sal_uInt16 address; sal_Int32 len; sal_Unicode *data; -} Index; +}; extern "C" { static int Index_comp(const void* s1, const void* s2) diff --git a/i18npool/source/textconversion/textconversion_ko.cxx b/i18npool/source/textconversion/textconversion_ko.cxx index 15fe63f2f05b..4e6ef770f613 100644 --- a/i18npool/source/textconversion/textconversion_ko.cxx +++ b/i18npool/source/textconversion/textconversion_ko.cxx @@ -81,11 +81,11 @@ TextConversion_ko::TextConversion_ko( const Reference < XComponentContext >& xCo static sal_Int16 checkScriptType(sal_Unicode c) { - typedef struct { + struct UBlock2Script { UBlockCode from; UBlockCode to; sal_Int16 script; - } UBlock2Script; + }; static const UBlock2Script scriptList[] = { {UBLOCK_HANGUL_JAMO, UBLOCK_HANGUL_JAMO, SCRIPT_HANGUL}, |