use make_pair instead of braced initializer in rich_text constructor

This commit is contained in:
Thomas Fussell 2016-12-31 20:15:44 -05:00
parent 760f95e2df
commit 7a7d44b693

View File

@ -29,7 +29,7 @@
namespace xlnt {
rich_text::rich_text(const std::string &plain_text)
: rich_text(rich_text_run{plain_text, {}})
: rich_text(std::make_pair(plain_text, optional<font>()))
{
}