2
0
forked from Wavyzz/dolibarr

Fix: Assigning the return value of new by reference is deprecated

This commit is contained in:
Regis Houssin
2009-10-25 10:53:36 +00:00
parent 4437bc596f
commit f0e75393d5
10 changed files with 15 additions and 15 deletions

View File

@@ -167,7 +167,7 @@ function &addworksheet($name="") {
}
}
$worksheet =& new writeexcel_worksheet($name, $index, $this->_activesheet,
$worksheet = new writeexcel_worksheet($name, $index, $this->_activesheet,
$this->_firstsheet,
$this->_url_format, $this->_parser,
$this->_tempdir);
@@ -187,9 +187,9 @@ function &addworksheet($name="") {
#
function &addformat($para=false) {
if($para===false) {
$format =& new writeexcel_format($this->_xf_index);
$format = new writeexcel_format($this->_xf_index);
} else {
$format =& new writeexcel_format($this->_xf_index, $para);
$format = new writeexcel_format($this->_xf_index, $para);
}
$this->_xf_index += 1;