No need in typedef struct in C++

This commit is contained in:
Oleg Shparber 2014-11-15 22:25:04 -08:00
parent 1d147b6c57
commit 1f49e16295
2 changed files with 4 additions and 5 deletions

View File

@ -30,9 +30,8 @@ extern const QString serverName;
// Represents per tab search state.
// needs to contain [search input, search model, section model, url]
typedef struct SearchState
struct SearchState
{
public:
QWebPage *page;
// model representing sections
ZealSearchModel sectionsList;
@ -48,7 +47,7 @@ public:
int scrollPosition;
int sectionsScroll;
} SearchState;
};
class MainWindow : public QMainWindow
{

View File

@ -21,7 +21,7 @@ class ZealDocsetsRegistry : public QObject
{
Q_OBJECT
public:
typedef struct {
struct docsetEntry {
QString name;
QString prefix;
QSqlDatabase db;
@ -29,7 +29,7 @@ public:
DocSetType type;
ZealDocsetMetadata metadata;
ZealDocsetInfo info;
} docsetEntry;
};
static ZealDocsetsRegistry* instance()
{