From ea12a5599b2281f3ee099aba37431d3bdb7ecb27 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 23 Dec 2010 14:53:38 +0100 Subject: [PATCH] Remove a few references. --- framework/SyncML/SyncML/Command/SyncElement.php | 4 ++-- framework/SyncML/SyncML/State.php | 11 +++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/framework/SyncML/SyncML/Command/SyncElement.php b/framework/SyncML/SyncML/Command/SyncElement.php index a1a4a80d7..967036904 100644 --- a/framework/SyncML/SyncML/Command/SyncElement.php +++ b/framework/SyncML/SyncML/Command/SyncElement.php @@ -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; diff --git a/framework/SyncML/SyncML/State.php b/framework/SyncML/SyncML/State.php index f9b60b672..ecd265ed0 100644 --- a/framework/SyncML/SyncML/State.php +++ b/framework/SyncML/SyncML/State.php @@ -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; } -- 2.11.0