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
#define ACCOUNT_H
#include <list>
#include <map>
#include <wx/wx.h>
class Account {
public:
struct Account {
wxString id;
wxString name;
wxString number;

View File

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

View File

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

View File

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