]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/handle.hh
release: 0.1.8
[lilypond.git] / flower / include / handle.hh
index 26328bd26b27f10b2ef4561826b0c19a159ac1aa..4176325b15d75bfb2869e59687a6f3ec9cdff479 100644 (file)
@@ -17,7 +17,7 @@ class Handle {
        refs = 0;
     }
     /// point to new object. 
-    void up(T *t, int *r) {
+    void up (T *t, int *r) {
        if (!r) {
            refs = new int;
            *refs = 1;
@@ -29,23 +29,23 @@ class Handle {
     }
     /// POST: *refs == 1
     void copy() {
-       if(*refs != 1){
-           T * newobj = new T(*obj );
+       if (*refs != 1){
+           T * newobj = new T(*obj);
            down();
-           up(newobj);
+           up (newobj);
        }
     }
-    Handle(Handle const &src) {
-       up(src.obj, src.refs);
+    Handle (Handle const &src) {
+       up (src.obj, src.refs);
     }
-    Handle(T & o) {
+    Handle (T & o) {
        up (&o);
     }
     void operator=(Handle const& src) {
        if (this == &src)
            return;
        down();
-       up(src.o, src.refs);
+       up (src.o, src.refs);
     }
     operator T const &() {
        return *obj;