]> granicus.if.org Git - clang/commitdiff
Add a couple const modifiers.
authorSteve Naroff <snaroff@apple.com>
Thu, 2 Aug 2007 00:19:14 +0000 (00:19 +0000)
committerSteve Naroff <snaroff@apple.com>
Thu, 2 Aug 2007 00:19:14 +0000 (00:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40708 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Expr.h

index ada076dc741d2b391defac7ae43eee9cb131cfba..32f4053c24feb3d035027779112059d35c842b69 100644 (file)
@@ -735,8 +735,8 @@ public:
     Expr(TypesCompatibleExprClass, ReturnType), Type1(t1), Type2(t2),
     BuiltinLoc(BLoc), RParenLoc(RP) {}
 
-  QualType getArgType1() { return Type1; }
-  QualType getArgType2() { return Type2; }
+  QualType getArgType1() const { return Type1; }
+  QualType getArgType2() const { return Type2; }
   
   int typesAreCompatible() const { return Type::typesAreCompatible(Type1,Type2); }