]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make this test a little easier to read, by compressing the Test class declaration
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 16 Oct 2002 15:42:01 +0000 (15:42 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 16 Oct 2002 15:42:01 +0000 (15:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@6662 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/reference.cc

index 230bd8307abcc298857366ac2e84399c513a99f3..7ce50b78f1f792a4a3ab9e0ffc7248f0b72e7e6a 100644 (file)
@@ -28,23 +28,10 @@ class Test : public Subscriptor
 {
     const char* name;
   public:
-    Test(const char* n) :
-                    name(n)
-      {
-       deallog << "Construct " << name << std::endl;
-      }
-    ~Test()
-      {
-       deallog << "Destruct " << name << std::endl;
-      }          
-    void f()
-      {
-        deallog << "mutable" << std::endl;
-      }
-    void f() const
-      {
-        deallog << "const" << std::endl;
-      }
+    Test(const char* n) : name(n) { deallog << "Construct " << name << std::endl; }
+    ~Test()                       { deallog << "Destruct " << name << std::endl;  }
+    void f()        { deallog << "mutable" << std::endl; }
+    void f() const  { deallog << "const" << std::endl;   }
 };
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.