summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/workbook/worksheet/row.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/axlsx/workbook/worksheet/row.rb')
-rw-r--r--lib/axlsx/workbook/worksheet/row.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/axlsx/workbook/worksheet/row.rb b/lib/axlsx/workbook/worksheet/row.rb
index 0c139164..16116835 100644
--- a/lib/axlsx/workbook/worksheet/row.rb
+++ b/lib/axlsx/workbook/worksheet/row.rb
@@ -90,9 +90,7 @@ module Axlsx
# @return [String]
def to_xml_string(r_index, str = +'')
serialized_tag('row', str, :r => r_index + 1) do
- tmp = +'' # time / memory tradeoff, lots of calls to rubyzip costs more time..
- each_with_index { |cell, c_index| cell.to_xml_string(r_index, c_index, tmp) }
- str << tmp
+ each_with_index { |cell, c_index| cell.to_xml_string(r_index, c_index, str) }
end
end