mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Fix warnings + CI compile error
This commit is contained in:
parent
840d1bcefc
commit
49bd0c8fb4
|
@ -29,12 +29,12 @@
|
|||
namespace xlnt {
|
||||
|
||||
rich_text::rich_text(const std::string &plain_text)
|
||||
: rich_text(rich_text_run{plain_text, optional<font>()})
|
||||
: rich_text({plain_text, optional<font>()})
|
||||
{
|
||||
}
|
||||
|
||||
rich_text::rich_text(const std::string &plain_text, const class font &text_font)
|
||||
: rich_text(rich_text_run{plain_text, optional<font>(text_font)})
|
||||
: rich_text({plain_text, optional<font>(text_font)})
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -51,7 +51,7 @@ void rich_text::clear()
|
|||
void rich_text::plain_text(const std::string &s, bool preserve_space = false)
|
||||
{
|
||||
clear();
|
||||
add_run(rich_text_run{s, {}, preserve_space});
|
||||
add_run({s, {}, preserve_space});
|
||||
}
|
||||
|
||||
std::string rich_text::plain_text() const
|
||||
|
|
|
@ -74,7 +74,7 @@ ext_list::ext::ext(const uri &ID, const std::string &serialised)
|
|||
: extension_ID_(ID), serialised_value_(serialised)
|
||||
{}
|
||||
|
||||
void ext_list::ext::serialise(xml::serializer &serialiser, const std::string& ns)
|
||||
void ext_list::ext::serialise(xml::serializer &serialiser, const std::string&)
|
||||
{
|
||||
std::istringstream ser(serialised_value_);
|
||||
xml::parser p(ser, "", xml::parser::receive_default);
|
||||
|
|
Loading…
Reference in New Issue
Block a user