mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
specify return type of lambda to prevent compiler error
This commit is contained in:
parent
e910666c56
commit
34270f2333
|
@ -2455,7 +2455,7 @@ void xlsx_producer::write_worksheet(const relationship &rel)
|
||||||
write_start_element(xmlns, "pageMargins");
|
write_start_element(xmlns, "pageMargins");
|
||||||
|
|
||||||
// TODO: there must be a better way to do this
|
// TODO: there must be a better way to do this
|
||||||
auto remove_trailing_zeros = [](const std::string &n) {
|
auto remove_trailing_zeros = [](const std::string &n) -> std::string {
|
||||||
auto decimal = n.find('.');
|
auto decimal = n.find('.');
|
||||||
|
|
||||||
if (decimal == std::string::npos) return n;
|
if (decimal == std::string::npos) return n;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user