Fixed typedef-related warnings from compiler. Also fixed warning on

keximdb, indirectly.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/1/head
Michele Calgaro 6 years ago
parent 7a7c17092f
commit daef72a0e4
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -15156,8 +15156,6 @@ namespace cimg_library {
static CImg get_load_pandore(const char *filename) { static CImg get_load_pandore(const char *filename) {
std::FILE *file = cimg::fopen(filename,"rb"); std::FILE *file = cimg::fopen(filename,"rb");
typedef unsigned char uchar; typedef unsigned char uchar;
typedef unsigned short ushort;
typedef unsigned int uint;
typedef unsigned long ulong; typedef unsigned long ulong;
CImg dest; CImg dest;
char tmp[32]; char tmp[32];

@ -29,7 +29,7 @@ class KexiProjectData;
class KEXICORE_EXPORT KexiStartupData class KEXICORE_EXPORT KexiStartupData
{ {
public: public:
typedef enum Action { enum Action {
DoNothing, DoNothing,
CreateBlankProject, CreateBlankProject,
CreateFromTemplate, CreateFromTemplate,

@ -254,7 +254,7 @@ class KEXI_DB_EXPORT Cursor: public TQObject, public Object
protected: protected:
//! possible results of row fetching, used for m_result //! possible results of row fetching, used for m_result
typedef enum FetchResult { FetchError=0, FetchOK=1, FetchEnd=2 }; enum FetchResult { FetchError=0, FetchOK=1, FetchEnd=2 };
/*! Cursor will operate on \a conn, raw \a statement will be used to execute query. */ /*! Cursor will operate on \a conn, raw \a statement will be used to execute query. */
Cursor(Connection* conn, const TQString& statement, uint options = NoOptions ); Cursor(Connection* conn, const TQString& statement, uint options = NoOptions );

@ -45,7 +45,7 @@ namespace KexiUtils {
class KEXIUTILS_EXPORT Validator : public TQValidator class KEXIUTILS_EXPORT Validator : public TQValidator
{ {
public: public:
typedef enum Result { Error = 0, Ok = 1, Warning = 2 }; enum Result { Error = 0, Ok = 1, Warning = 2 };
Validator(TQObject * parent = 0, const char * name = 0); Validator(TQObject * parent = 0, const char * name = 0);
virtual ~Validator(); virtual ~Validator();

@ -42,7 +42,7 @@ public:
- SavingServerBasedDB saves server-based (shortcut) file - SavingServerBasedDB saves server-based (shortcut) file
- CustomOpening can be used for opening other files, like CSV - CustomOpening can be used for opening other files, like CSV
*/ */
typedef enum Mode { enum Mode {
Opening = 1, Opening = 1,
SavingFileBasedDB = 2, SavingFileBasedDB = 2,
SavingServerBasedDB = 4, SavingServerBasedDB = 4,

@ -236,7 +236,7 @@ public:
//! single shot after 1ms for contents updatinh //! single shot after 1ms for contents updatinh
void triggerUpdate(); void triggerUpdate();
typedef enum ScrollDirection enum ScrollDirection
{ {
ScrollUp, ScrollUp,
ScrollDown, ScrollDown,

@ -357,33 +357,33 @@ bool KWmf::parse(
for (int i = 0; i < s_maxHandles; i++) for (int i = 0; i < s_maxHandles; i++)
m_objectHandles[i] = NULL; m_objectHandles[i] = NULL;
typedef struct _RECT struct RECT
{ {
S16 left; S16 left;
S16 top; S16 top;
S16 right; S16 right;
S16 bottom; S16 bottom;
} RECT; };
typedef struct _RECTL struct RECTL
{ {
S32 left; S32 left;
S32 top; S32 top;
S32 right; S32 right;
S32 bottom; S32 bottom;
} RECTL; };
typedef struct _SIZE struct SIZE
{ {
S16 width; S16 width;
S16 height; S16 height;
} SIZE; };
typedef struct _SIZEL struct SIZEL
{ {
S32 width; S32 width;
S32 height; S32 height;
} SIZEL; };
struct WmfEnhMetaHeader struct WmfEnhMetaHeader
{ {

@ -9,33 +9,33 @@ typedef int DWORD;
typedef TQ_INT32 LONG; typedef TQ_INT32 LONG;
typedef void* _HANDLE; typedef void* _HANDLE;
typedef struct _RECT struct RECT
{ {
WORD left; WORD left;
WORD top; WORD top;
WORD right; WORD right;
WORD bottom; WORD bottom;
} RECT; };
typedef struct _RECTL struct RECTL
{ {
LONG left; LONG left;
LONG top; LONG top;
LONG right; LONG right;
LONG bottom; LONG bottom;
} RECTL; };
typedef struct _SIZE struct SIZE
{ {
WORD width; WORD width;
WORD height; WORD height;
} SIZE; };
typedef struct _SIZEL struct SIZEL
{ {
LONG width; LONG width;
LONG height; LONG height;
} SIZEL; };
struct WmfEnhMetaHeader struct WmfEnhMetaHeader

Loading…
Cancel
Save