From 21d68e24351ef5a2d95e6dd5676a9926dd2bf3a8 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Mon, 30 Nov 2009 20:10:58 +0000 Subject: Add const to accessors that don't modify the object. llvm-svn: 90153 --- clang/lib/AST/Stmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/AST') diff --git a/clang/lib/AST/Stmt.cpp b/clang/lib/AST/Stmt.cpp index ff35251ae39..fad80ec0cf2 100644 --- a/clang/lib/AST/Stmt.cpp +++ b/clang/lib/AST/Stmt.cpp @@ -559,7 +559,7 @@ Stmt::child_iterator CXXCatchStmt::child_end() { return &HandlerBlock + 1; } -QualType CXXCatchStmt::getCaughtType() { +QualType CXXCatchStmt::getCaughtType() const { if (ExceptionDecl) return ExceptionDecl->getType(); return QualType(); -- cgit v1.2.3