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
};
typedef enum ConversionStatus {
enum ConversionStatus {
Success,
MissingUnitConversion,
MissingIngredientWeight,

@ -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;

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

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

@ -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 );

@ -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 );

@ -75,7 +75,7 @@ typedef TQValueList <Menu>::Iterator MenuId;
// 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

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

@ -23,7 +23,7 @@ class KProgressDialog;
class RecipeDB;
typedef enum ReloadFlags {
enum ReloadFlags {
Load, /** Only performs the reload if the list hasn't already 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 */

Loading…
Cancel
Save