USe struct instead of class for data types

This commit is contained in:
Grégory Soutadé 2011-08-14 18:21:26 +02:00
parent 43b2b3ccf6
commit bf25a10326
4 changed files with 5 additions and 10 deletions

View File

@ -20,12 +20,9 @@
#ifndef ACCOUNT_H #ifndef ACCOUNT_H
#define ACCOUNT_H #define ACCOUNT_H
#include <list>
#include <map>
#include <wx/wx.h> #include <wx/wx.h>
class Account { struct Account {
public:
wxString id; wxString id;
wxString name; wxString name;
wxString number; wxString number;

View File

@ -20,11 +20,11 @@
#ifndef ACCOUNTAMOUNT_H #ifndef ACCOUNTAMOUNT_H
#define ACCOUNTAMOUNT_H #define ACCOUNTAMOUNT_H
class AccountAmount { struct AccountAmount {
public:
wxString account; wxString account;
int month; int month;
int year; int year;
bool operator()(const AccountAmount& x, const AccountAmount& y) const bool operator()(const AccountAmount& x, const AccountAmount& y) const
{ {
long x1, y1; long x1, y1;

View File

@ -20,9 +20,8 @@
#ifndef CATEGORY_H #ifndef CATEGORY_H
#define CATEGORY_H #define CATEGORY_H
class Category struct Category
{ {
public:
wxString id; wxString id;
wxString parent; wxString parent;
wxString name; wxString name;

View File

@ -23,8 +23,7 @@
#include <wx/wx.h> #include <wx/wx.h>
#include <vector> #include <vector>
class Operation { struct Operation {
public:
wxString id; wxString id;
wxString parent; wxString parent;
unsigned int day; unsigned int day;