mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
fix passing non-const ref to temporary
This commit is contained in:
parent
116e53fb0c
commit
53e1757c2e
|
@ -117,7 +117,8 @@ workbook workbook::empty_numbers()
|
||||||
|
|
||||||
workbook::workbook()
|
workbook::workbook()
|
||||||
{
|
{
|
||||||
swap(*this, empty_excel());
|
auto wb_template = empty_excel();
|
||||||
|
swap(*this, wb_template);
|
||||||
}
|
}
|
||||||
|
|
||||||
workbook::workbook(detail::workbook_impl *impl) : d_(impl)
|
workbook::workbook(detail::workbook_impl *impl) : d_(impl)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user