diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-08-23 18:33:22 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-08-23 18:50:13 +0900 |
commit | 5c002058c053acade045f0be8e0f726e17ea96a2 (patch) | |
tree | 1e4eb01d51c326b0962c27d4d40323b5b7827935 /lib | |
parent | f3e216f001d6fb6af75f9728930bddf3da59cccf (diff) | |
download | koffice-5c002058c053acade045f0be8e0f726e17ea96a2.tar.gz koffice-5c002058c053acade045f0be8e0f726e17ea96a2.zip |
Fixed typedef-related warnings from compiler. Also fixed warning on
keximdb, indirectly.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit daef72a0e41f0f3203386fc24aa818633e89d943)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/kwmf/kwmf.cc | 16 | ||||
-rw-r--r-- | lib/kwmf/wmfstruct.h | 16 |
2 files changed, 16 insertions, 16 deletions
diff --git a/lib/kwmf/kwmf.cc b/lib/kwmf/kwmf.cc index 38d520db..06092a82 100644 --- a/lib/kwmf/kwmf.cc +++ b/lib/kwmf/kwmf.cc @@ -357,33 +357,33 @@ bool KWmf::parse( for (int i = 0; i < s_maxHandles; i++) m_objectHandles[i] = NULL; - typedef struct _RECT + struct RECT { S16 left; S16 top; S16 right; S16 bottom; - } RECT; + }; - typedef struct _RECTL + struct RECTL { S32 left; S32 top; S32 right; S32 bottom; - } RECTL; + }; - typedef struct _SIZE + struct SIZE { S16 width; S16 height; - } SIZE; + }; - typedef struct _SIZEL + struct SIZEL { S32 width; S32 height; - } SIZEL; + }; struct WmfEnhMetaHeader { diff --git a/lib/kwmf/wmfstruct.h b/lib/kwmf/wmfstruct.h index 7400e896..7c0b56da 100644 --- a/lib/kwmf/wmfstruct.h +++ b/lib/kwmf/wmfstruct.h @@ -9,33 +9,33 @@ typedef int DWORD; typedef TQ_INT32 LONG; typedef void* _HANDLE; -typedef struct _RECT +struct RECT { WORD left; WORD top; WORD right; WORD bottom; -} RECT; +}; -typedef struct _RECTL +struct RECTL { LONG left; LONG top; LONG right; LONG bottom; -} RECTL; +}; -typedef struct _SIZE +struct SIZE { WORD width; WORD height; -} SIZE; +}; -typedef struct _SIZEL +struct SIZEL { LONG width; LONG height; -} SIZEL; +}; struct WmfEnhMetaHeader |