Minor refactoring.

TRAC #15551 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@563 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 05a5d8e0
#define MAJOR_VERSION 0
#define MINOR_VERSION 0
#define BUILD_VERSION 0
#define BUILD_REVISION 562
#define BUILD_REVISION 563
#define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x)
......
......@@ -26,26 +26,17 @@ public:
bool operator==(const int i) const
{
if (i == iConst)
return true;
return false;
return i == iConst;
}
bool operator==(const float f) const
{
if (f == fConst)
return true;
return false;
return f == fConst;
}
bool operator==(const bool b) const
{
if (b == bConst)
return true;
return false;
return b == bConst;
}
bool operator==(const ConstantUnion& constant) const
......@@ -55,20 +46,11 @@ public:
switch (type) {
case EbtInt:
if (constant.iConst == iConst)
return true;
break;
return constant.iConst == iConst;
case EbtFloat:
if (constant.fConst == fConst)
return true;
break;
return constant.fConst == fConst;
case EbtBool:
if (constant.bConst == bConst)
return true;
break;
return constant.bConst == bConst;
}
return false;
......
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