Reuse the Guard class

Change-Id: Ia742ab92fd7947f4d156d03e112ee32363312996
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Jarek Kobus
2016-10-20 16:22:46 +02:00
committed by Jarek Kobus
parent d3a743d77e
commit 344f255fa9
3 changed files with 17 additions and 27 deletions

View File

@@ -29,6 +29,7 @@
#include <coreplugin/editormanager/ieditor.h>
#include <coreplugin/idocument.h>
#include <utils/guard.h>
QT_BEGIN_NAMESPACE
class QComboBox;
@@ -103,7 +104,7 @@ private:
QPair<QString, QString> m_currentFileChunk;
int m_currentViewIndex;
int m_currentDiffFileIndex;
int m_ignoreChanges;
Utils::Guard m_ignoreChanges;
bool m_sync;
bool m_showDescription;
};