HowToSetUpLLVMStyleRTTI.rst: remove unneeded semicolons in code examples.
authorDmitri Gribenko <gribozavr@gmail.com>
Fri, 5 Oct 2012 20:52:13 +0000 (20:52 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Fri, 5 Oct 2012 20:52:13 +0000 (20:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165335 91177308-0d34-0410-b5e6-96231b3b80d8

docs/HowToSetUpLLVMStyleRTTI.rst

index b64f9e9716df779efe5f632cbb83dc2d9dee761f..b5c1b78afeb736635018eed7636d831df19ce578 100644 (file)
@@ -36,7 +36,7 @@ RTTI for this class hierarchy:
 
    class Shape {
    public:
-     Shape() {};
+     Shape() {}
      virtual double computeArea() = 0;
    };
 
@@ -86,7 +86,7 @@ steps:
       +public:
       +  ShapeKind getKind() const { return Kind; }
       +
-         Shape() {};
+         Shape() {}
          virtual double computeArea() = 0;
        };
 
@@ -130,8 +130,8 @@ steps:
        public:
          ShapeKind getKind() const { return Kind; }
 
-      -  Shape() {};
-      +  Shape(ShapeKind K) : Kind(K) {};
+      -  Shape() {}
+      +  Shape(ShapeKind K) : Kind(K) {}
          virtual double computeArea() = 0;
        };
 
@@ -172,7 +172,7 @@ steps:
        public:
          ShapeKind getKind() const { return Kind; }
 
-         Shape(ShapeKind K) : Kind(K) {};
+         Shape(ShapeKind K) : Kind(K) {}
          virtual double computeArea() = 0;
       +
       +  static bool classof(const Shape *) { return true; }