USe struct instead of class for data types
This commit is contained in:
parent
43b2b3ccf6
commit
bf25a10326
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -20,9 +20,8 @@
|
|||
#ifndef CATEGORY_H
|
||||
#define CATEGORY_H
|
||||
|
||||
class Category
|
||||
struct Category
|
||||
{
|
||||
public:
|
||||
wxString id;
|
||||
wxString parent;
|
||||
wxString name;
|
||||
|
|
|
@ -23,8 +23,7 @@
|
|||
#include <wx/wx.h>
|
||||
#include <vector>
|
||||
|
||||
class Operation {
|
||||
public:
|
||||
struct Operation {
|
||||
wxString id;
|
||||
wxString parent;
|
||||
unsigned int day;
|
||||
|
|
Loading…
Reference in New Issue
Block a user