summaryrefslogtreecommitdiffstats
path: root/i18npool
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-03-05 16:11:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-03-06 06:47:21 +0100
commit83db9afa20b8cf54b522ca9c3f04e7e267684c59 (patch)
treecad0d77f0a76ce8f25e39d72be809f318677bbe2 /i18npool
parentloplugin:unnecessaryparen improve member expression (diff)
downloadcore-83db9afa20b8cf54b522ca9c3f04e7e267684c59.tar.gz
core-83db9afa20b8cf54b522ca9c3f04e7e267684c59.zip
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')
-rw-r--r--i18npool/source/nativenumber/nativenumbersupplier.cxx4
-rw-r--r--i18npool/source/textconversion/genconv_dict.cxx4
-rw-r--r--i18npool/source/textconversion/textconversion_ko.cxx4
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},