diff --git a/krecipes/src/backends/recipedb.h b/krecipes/src/backends/recipedb.h index 689c9ad..f987c32 100644 --- a/krecipes/src/backends/recipedb.h +++ b/krecipes/src/backends/recipedb.h @@ -89,7 +89,7 @@ public: All = 0xFFFF ^ NamesOnly ^ Noatime }; - typedef enum ConversionStatus { + enum ConversionStatus { Success, MissingUnitConversion, MissingIngredientWeight, diff --git a/krecipes/src/datablocks/mixednumber.h b/krecipes/src/datablocks/mixednumber.h index 7dd318e..15d9054 100644 --- a/krecipes/src/datablocks/mixednumber.h +++ b/krecipes/src/datablocks/mixednumber.h @@ -46,7 +46,7 @@ public: return ( toDouble() > d ); } - typedef enum Format { DecimalFormat, MixedNumberFormat }; + enum Format { DecimalFormat, MixedNumberFormat }; /** The input as a decimal. */ double toDouble() const; diff --git a/krecipes/src/dialogs/dependanciesdialog.h b/krecipes/src/dialogs/dependanciesdialog.h index c03705d..84721ea 100644 --- a/krecipes/src/dialogs/dependanciesdialog.h +++ b/krecipes/src/dialogs/dependanciesdialog.h @@ -23,7 +23,7 @@ #include "datablocks/elementlist.h" -typedef struct ListInfo { +struct ListInfo { ElementList list; TQString name; }; diff --git a/krecipes/src/dialogs/recipeinputdialog.cpp b/krecipes/src/dialogs/recipeinputdialog.cpp index a5bd1af..b29443c 100644 --- a/krecipes/src/dialogs/recipeinputdialog.cpp +++ b/krecipes/src/dialogs/recipeinputdialog.cpp @@ -60,7 +60,7 @@ #include "profiling.h" -typedef enum ColorStatus { GreenStatus, RedStatus, YellowStatus }; +enum ColorStatus { GreenStatus, RedStatus, YellowStatus }; ClickableLed::ClickableLed( TQWidget *parent ) : KLed(parent) { diff --git a/krecipes/src/dialogs/selectpropertydialog.h b/krecipes/src/dialogs/selectpropertydialog.h index 9aec6ff..ff8aa4f 100644 --- a/krecipes/src/dialogs/selectpropertydialog.h +++ b/krecipes/src/dialogs/selectpropertydialog.h @@ -34,7 +34,7 @@ class IngredientPropertyList; class SelectPropertyDialog: public KDialogBase { public: - typedef enum OptionFlag { ShowEmptyUnit, HideEmptyUnit } ; + enum OptionFlag { ShowEmptyUnit, HideEmptyUnit } ; // Methods SelectPropertyDialog( TQWidget* parent, IngredientPropertyList *propertyList, UnitList *unitList, OptionFlag showEmpty = ShowEmptyUnit ); diff --git a/krecipes/src/dialogs/selectunitdialog.h b/krecipes/src/dialogs/selectunitdialog.h index 8e7e7ca..22d07be 100644 --- a/krecipes/src/dialogs/selectunitdialog.h +++ b/krecipes/src/dialogs/selectunitdialog.h @@ -30,7 +30,7 @@ class SelectUnitDialog : public KDialogBase { public: - typedef enum OptionFlag { ShowEmptyUnit, HideEmptyUnit } ; + enum OptionFlag { ShowEmptyUnit, HideEmptyUnit } ; SelectUnitDialog( TQWidget* parent, const UnitList &unitList, OptionFlag = ShowEmptyUnit ); diff --git a/krecipes/src/krecipesview.h b/krecipes/src/krecipesview.h index 130cbd7..2216594 100644 --- a/krecipes/src/krecipesview.h +++ b/krecipes/src/krecipesview.h @@ -75,7 +75,7 @@ typedef TQValueList