]> granicus.if.org Git - clang/commitdiff
Use 'class' instead of 'struct'.
authorZhongxing Xu <xuzhongxing@gmail.com>
Fri, 11 Dec 2009 00:55:44 +0000 (00:55 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Fri, 11 Dec 2009 00:55:44 +0000 (00:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91085 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/MallocChecker.cpp

index 204c7b320e65760b28aafadfbdc39824bd6c1e73..6fd43c11db3deeda36ae473fdc1d9d1557b8b3c1 100644 (file)
@@ -22,10 +22,11 @@ using namespace clang;
 
 namespace {
 
-struct RefState {
+class RefState {
   enum Kind { Allocated, Released, Escaped } K;
   const Stmt *S;
 
+public:
   RefState(Kind k, const Stmt *s) : K(k), S(s) {}
 
   bool isAllocated() const { return K == Allocated; }