Fixed typedef-related warnings from compiler.

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

@ -89,7 +89,7 @@ public:
All = 0xFFFF ^ NamesOnly ^ Noatime All = 0xFFFF ^ NamesOnly ^ Noatime
}; };
typedef enum ConversionStatus { enum ConversionStatus {
Success, Success,
MissingUnitConversion, MissingUnitConversion,
MissingIngredientWeight, MissingIngredientWeight,

@ -46,7 +46,7 @@ public:
return ( toDouble() > d ); return ( toDouble() > d );
} }
typedef enum Format { DecimalFormat, MixedNumberFormat }; enum Format { DecimalFormat, MixedNumberFormat };
/** The input as a decimal. */ /** The input as a decimal. */
double toDouble() const; double toDouble() const;

@ -23,7 +23,7 @@
#include "datablocks/elementlist.h" #include "datablocks/elementlist.h"
typedef struct ListInfo { struct ListInfo {
ElementList list; ElementList list;
TQString name; TQString name;
}; };

@ -60,7 +60,7 @@
#include "profiling.h" #include "profiling.h"
typedef enum ColorStatus { GreenStatus, RedStatus, YellowStatus }; enum ColorStatus { GreenStatus, RedStatus, YellowStatus };
ClickableLed::ClickableLed( TQWidget *parent ) : KLed(parent) ClickableLed::ClickableLed( TQWidget *parent ) : KLed(parent)
{ {

@ -34,7 +34,7 @@ class IngredientPropertyList;
class SelectPropertyDialog: public KDialogBase class SelectPropertyDialog: public KDialogBase
{ {
public: public:
typedef enum OptionFlag { ShowEmptyUnit, HideEmptyUnit } ; enum OptionFlag { ShowEmptyUnit, HideEmptyUnit } ;
// Methods // Methods
SelectPropertyDialog( TQWidget* parent, IngredientPropertyList *propertyList, UnitList *unitList, OptionFlag showEmpty = ShowEmptyUnit ); SelectPropertyDialog( TQWidget* parent, IngredientPropertyList *propertyList, UnitList *unitList, OptionFlag showEmpty = ShowEmptyUnit );

@ -30,7 +30,7 @@
class SelectUnitDialog : public KDialogBase class SelectUnitDialog : public KDialogBase
{ {
public: public:
typedef enum OptionFlag { ShowEmptyUnit, HideEmptyUnit } ; enum OptionFlag { ShowEmptyUnit, HideEmptyUnit } ;
SelectUnitDialog( TQWidget* parent, const UnitList &unitList, OptionFlag = ShowEmptyUnit ); SelectUnitDialog( TQWidget* parent, const UnitList &unitList, OptionFlag = ShowEmptyUnit );

@ -75,7 +75,7 @@ typedef TQValueList <Menu>::Iterator MenuId;
// Some constants // Some constants
typedef enum KrePanel {SelectP = 0, ShoppingP, DietP, MatcherP, IngredientsP, PropertiesP, UnitsP, PrepMethodsP, CategoriesP, AuthorsP, RecipeEdit, RecipeView }; enum KrePanel {SelectP = 0, ShoppingP, DietP, MatcherP, IngredientsP, PropertiesP, UnitsP, PrepMethodsP, CategoriesP, AuthorsP, RecipeEdit, RecipeView };
// Class KrecipesView // Class KrecipesView

@ -35,8 +35,8 @@ class RecipeActionsHandler : public TQObject
Q_OBJECT Q_OBJECT
public: public:
typedef enum ItemType { Category, Recipe }; enum ItemType { Category, Recipe };
typedef enum RecipeActions { enum RecipeActions {
AllActions = 0xffff, AllActions = 0xffff,
Open = 0x0001, Open = 0x0001,
Edit = 0x0002, Edit = 0x0002,

@ -23,7 +23,7 @@ class KProgressDialog;
class RecipeDB; class RecipeDB;
typedef enum ReloadFlags { enum ReloadFlags {
Load, /** Only performs the reload if the list hasn't already been loaded */ Load, /** Only performs the reload if the list hasn't already been loaded */
ReloadIfPopulated, /** Only performs the reload if the list has been loaded */ ReloadIfPopulated, /** Only performs the reload if the list has been loaded */
ForceReload /** Load/reload the list regardless of whether or not it's been loaded */ ForceReload /** Load/reload the list regardless of whether or not it's been loaded */

Loading…
Cancel
Save