diff options
author | hjk <qtc-committer@nokia.com> | 2011-07-06 12:01:23 +0200 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2011-07-07 10:28:16 +0200 |
commit | 378da003e9a951da840f39e1fe54370494dff1cd (patch) | |
tree | c8d337f3fdadb2f8023fb95c0308dce497350cfb /src/plugins/analyzerbase/analyzerconstants.h | |
parent | 500981b9c0c96c9aec65a996cfc4b058d0a56ccc (diff) |
analyzer: use an enum for StartMode and add comment make intentions clear
Change-Id: I10d78ad0dd8d410206fc0109b6a3d2b447404553
Reviewed-on: http://codereview.qt.nokia.com/1242
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/analyzerbase/analyzerconstants.h')
-rw-r--r-- | src/plugins/analyzerbase/analyzerconstants.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/plugins/analyzerbase/analyzerconstants.h b/src/plugins/analyzerbase/analyzerconstants.h index 26f3b0ad54..23f15e7b80 100644 --- a/src/plugins/analyzerbase/analyzerconstants.h +++ b/src/plugins/analyzerbase/analyzerconstants.h @@ -39,19 +39,17 @@ namespace Analyzer { -class StartMode -{ -public: - explicit StartMode(int m = 0) : m(m) {} - operator int() const { return m; } - void operator=(int m_) { m = m_; } -private: - int m; -}; - // Special values for currently used modes. // Their meaning is interpreted by the individual tools. -enum { StartLocal = -1, StartRemote = -2, StartQml = -3 }; +// FIXME: The plan is to remove this entirely from the +// public interface and let the tools handle that internally. + +enum StartMode +{ + StartLocal = -1, + StartRemote = -2, + StartQml = -3 +}; namespace Constants { |