[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/klink/lib
From:       Scott Wheeler <wheeler () kde ! org>
Date:       2004-11-07 1:56:55
Message-ID: 20041107015655.F3D2716DE7 () office ! kde ! org
[Download RAW message or body]

CVS commit by wheeler: 

Some null() cleanups.


  M +1 -1      klink.cpp   1.3
  M +3 -3      klink.h   1.9
  M +1 -1      klinktarget.cpp   1.3
  M +1 -1      klinktarget.h   1.7


--- kdenonbeta/klink/lib/klink.cpp  #1.2:1.3
@@ -80,5 +80,5 @@ QString Anchor::application() const
 }
 
-Anchor Anchor::null() // static
+const Anchor &Anchor::null() // static
 {
     static Anchor a;

--- kdenonbeta/klink/lib/klink.h  #1.8:1.9
@@ -41,5 +41,5 @@ public:
     QString application() const;
 
-    static Anchor null();
+    static const Anchor &null();
 
     Anchor &operator=(const Anchor &anchor);
@@ -59,6 +59,6 @@ public:
     Link(Type type,
          const Node &target,
-         const Node &source /*= Target::null() */,
-         const Anchor &anchor /* = Anchor::null() */);
+         const Node &source = Node::null(),
+         const Anchor &anchor = Anchor::null());
 
     Type type() const;

--- kdenonbeta/klink/lib/klinktarget.cpp  #1.2:1.3
@@ -64,5 +64,5 @@ unsigned int Node::id() const
 }
 
-Node &Node::null() // static
+const Node &Node::null() // static
 {
     static Node n;

--- kdenonbeta/klink/lib/klinktarget.h  #1.6:1.7
@@ -37,5 +37,5 @@ public:
     unsigned int id() const;
 
-    static Node &null();
+    static const Node &null();
     bool isNull() const;
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic