USe struct instead of class for data types
This commit is contained in:
parent
43b2b3ccf6
commit
bf25a10326
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user