Minor performance tweak

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@62922 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
Mark Baker 2010-10-28 16:50:52 +00:00
parent bd82adc1f3
commit 8c3ce4f938
2 changed files with 2 additions and 3 deletions

View File

@ -430,7 +430,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
{
if (!is_null($this->_cellCollection)) {
return $this->_cellCollection->getSortedCellList();
}
}
return array();
}

View File

@ -248,8 +248,7 @@ class PHPExcel_Writer_Excel5_Worksheet extends PHPExcel_Writer_Excel5_BIFFwriter
$this->_lastColumnIndex = -1;
foreach ($this->_phpSheet->getCellCollection(false) as $cellID) {
preg_match('/^(\w+)(\d+)$/U',$cellID,$matches);
list(,$col,$row) = $matches;
list($col,$row) = sscanf($cellID,'%[A-Z]%d');
$column = PHPExcel_Cell::columnIndexFromString($col) - 1;
// Don't break Excel!