summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-08-23 18:33:22 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-08-23 18:33:22 +0900
commitdaef72a0e41f0f3203386fc24aa818633e89d943 (patch)
treea4e3df70463ae1234845728eb7076c9d469f21bb /lib
parent7a7c17092fcdd4772fb6e499ef13429f96ac04bb (diff)
downloadkoffice-daef72a0e41f0f3203386fc24aa818633e89d943.tar.gz
koffice-daef72a0e41f0f3203386fc24aa818633e89d943.zip
Fixed typedef-related warnings from compiler. Also fixed warning on
keximdb, indirectly. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'lib')
-rw-r--r--lib/kwmf/kwmf.cc16
-rw-r--r--lib/kwmf/wmfstruct.h16
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