Commit 378da003 authored by hjk's avatar hjk Committed by hjk

analyzer: use an enum for StartMode and add comment make intentions clear

Change-Id: I10d78ad0dd8d410206fc0109b6a3d2b447404553
Reviewed-on: http://codereview.qt.nokia.com/1242Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 500981b9
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment