From f5a7a74191e18dbb2966ff2ddabe1b638237377e Mon Sep 17 00:00:00 2001
From: Tobias Hunger <tobias.hunger@digia.com>
Date: Wed, 4 Sep 2013 16:08:49 +0200
Subject: [PATCH] Find: Turn SearchResultItem struct into class

Change-Id: I0ef59e409310c893b790d3182fcc2a91664e83c9
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
---
 src/plugins/cpptools/cppfindreferences.h      | 4 ++--
 src/plugins/find/searchresultwindow.h         | 3 ++-
 src/plugins/qmljseditor/qmljsfindreferences.h | 4 ++--
 src/plugins/texteditor/basefilefind.h         | 8 +++-----
 4 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/src/plugins/cpptools/cppfindreferences.h b/src/plugins/cpptools/cppfindreferences.h
index 9f7a96046c4..13f2da5fc69 100644
--- a/src/plugins/cpptools/cppfindreferences.h
+++ b/src/plugins/cpptools/cppfindreferences.h
@@ -42,8 +42,8 @@
 QT_FORWARD_DECLARE_CLASS(QTimer)
 
 namespace Find {
-    struct SearchResultItem;
-    class SearchResult;
+class SearchResultItem;
+class SearchResult;
 } // namespace Find
 
 namespace CppTools {
diff --git a/src/plugins/find/searchresultwindow.h b/src/plugins/find/searchresultwindow.h
index 24bc7db97e3..49e371ce78c 100644
--- a/src/plugins/find/searchresultwindow.h
+++ b/src/plugins/find/searchresultwindow.h
@@ -50,8 +50,9 @@ namespace Internal {
 }
 class SearchResultWindow;
 
-struct FIND_EXPORT SearchResultItem
+class FIND_EXPORT SearchResultItem
 {
+public:
     SearchResultItem()
         : textMarkPos(-1),
         textMarkLength(0),
diff --git a/src/plugins/qmljseditor/qmljsfindreferences.h b/src/plugins/qmljseditor/qmljsfindreferences.h
index 779724e6037..587ea58ab7f 100644
--- a/src/plugins/qmljseditor/qmljsfindreferences.h
+++ b/src/plugins/qmljseditor/qmljsfindreferences.h
@@ -41,8 +41,8 @@
 QT_FORWARD_DECLARE_CLASS(QTimer)
 
 namespace Find {
-    struct SearchResultItem;
-    class SearchResult;
+class SearchResultItem;
+class SearchResult;
 } // namespace Find
 
 namespace QmlJSEditor {
diff --git a/src/plugins/texteditor/basefilefind.h b/src/plugins/texteditor/basefilefind.h
index 8d84d42b7e6..f1a5861f7b2 100644
--- a/src/plugins/texteditor/basefilefind.h
+++ b/src/plugins/texteditor/basefilefind.h
@@ -40,14 +40,12 @@ class QLabel;
 class QComboBox;
 QT_END_NAMESPACE
 
-namespace Utils {
-class FileIterator;
-}
+namespace Utils { class FileIterator; }
 namespace Find {
 class SearchResult;
-struct SearchResultItem;
+class SearchResultItem;
 class IFindSupport;
-}
+} // namespace Find
 
 namespace TextEditor {
 namespace Internal {
-- 
GitLab