Remove a few references.
authorJan Schneider <jan@horde.org>
Thu, 23 Dec 2010 13:53:38 +0000 (14:53 +0100)
committerJan Schneider <jan@horde.org>
Thu, 23 Dec 2010 16:20:27 +0000 (17:20 +0100)
framework/SyncML/SyncML/Command/SyncElement.php
framework/SyncML/SyncML/State.php

index a1a4a80..9670369 100644 (file)
@@ -94,9 +94,9 @@ class SyncML_SyncElement {
      * @param integer $cmdID
      * @param integer $size
      */
-    function SyncML_SyncElement(&$sync, $elementType, $cmdID, $size)
+    function SyncML_SyncElement($sync, $elementType, $cmdID, $size)
     {
-        $this->sync = &$sync;
+        $this->sync = $sync;
         $this->elementType = $elementType;
         $this->cmdID = $cmdID;
         $this->size = $size;
index f9b60b6..ecd265e 100644 (file)
@@ -312,29 +312,28 @@ class SyncML_State {
      * @param string $target
      * @param SyncML_Sync $sync
      */
-    function setSync($target, &$sync)
+    function setSync($target, $sync)
     {
-        $this->_syncs[$target] = &$sync;
+        $this->_syncs[$target] = $sync;
     }
 
     /**
      * @param string $target
      * @return SyncML_Sync
      */
-    function &getSync($target)
+    function getSync($target)
     {
         if (isset($this->_syncs[$target])) {
             return $this->_syncs[$target];
         } else {
-            $sync = false;
-            return $sync;
+            return false;
         }
     }
 
     /**
      * @return array
      */
-    function &getSyncs()
+    function getSyncs()
     {
         return $this->_syncs;
     }