From 1f49e162952069fd83861241e227415e866af5d0 Mon Sep 17 00:00:00 2001 From: Oleg Shparber Date: Sat, 15 Nov 2014 22:25:04 -0800 Subject: [PATCH] No need in typedef struct in C++ --- zeal/mainwindow.h | 5 ++--- zeal/zealdocsetsregistry.h | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/zeal/mainwindow.h b/zeal/mainwindow.h index fd74928..615a326 100644 --- a/zeal/mainwindow.h +++ b/zeal/mainwindow.h @@ -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 { diff --git a/zeal/zealdocsetsregistry.h b/zeal/zealdocsetsregistry.h index 49a0f78..c55fe75 100644 --- a/zeal/zealdocsetsregistry.h +++ b/zeal/zealdocsetsregistry.h @@ -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() {