Minor performance tweak
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@74697 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
parent
c7539c3d4c
commit
cdb94cfb1e
|
@ -857,8 +857,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
|
|||
*/
|
||||
public function setCellValue($pCoordinate = 'A1', $pValue = null, $returnCell = false)
|
||||
{
|
||||
$cell = $this->getCell($pCoordinate);
|
||||
$cell->setValue($pValue);
|
||||
$cell = $this->getCell($pCoordinate)->setValue($pValue);
|
||||
|
||||
if ($returnCell) {
|
||||
return $cell;
|
||||
|
@ -877,8 +876,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
|
|||
*/
|
||||
public function setCellValueByColumnAndRow($pColumn = 0, $pRow = 1, $pValue = null, $returnCell = false)
|
||||
{
|
||||
$cell = $this->getCell(PHPExcel_Cell::stringFromColumnIndex($pColumn) . $pRow);
|
||||
$cell->setValue($pValue);
|
||||
$cell = $this->getCell(PHPExcel_Cell::stringFromColumnIndex($pColumn) . $pRow)->setValue($pValue);
|
||||
|
||||
if ($returnCell) {
|
||||
return $cell;
|
||||
|
|
Loading…
Reference in New Issue