mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Reformatted source
Reformatted pull request to match the library formatting style.
This commit is contained in:
parent
8f9722686b
commit
d0bacf548c
|
@ -1705,10 +1705,14 @@ void xlsx_consumer::read_shared_workbook_user_data()
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Try to find given xfid value in the styles vector and, if succeeded, set's the optional style.
|
||||||
|
/// </summary>
|
||||||
void set_style_by_xfid(
|
void set_style_by_xfid(
|
||||||
const std::vector<std::pair<style_impl, std::size_t>>& styles,
|
const std::vector<std::pair<style_impl, std::size_t>>& styles, std::size_t xfid, optional<std::string>& style
|
||||||
std::size_t xfid, optional<std::string>& style
|
)
|
||||||
) {
|
{
|
||||||
for(auto item : styles)
|
for(auto item : styles)
|
||||||
{
|
{
|
||||||
if( item.second == xfid )
|
if( item.second == xfid )
|
||||||
|
@ -1717,7 +1721,8 @@ void set_style_by_xfid(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
} // namespace
|
||||||
|
|
||||||
void xlsx_consumer::read_stylesheet()
|
void xlsx_consumer::read_stylesheet()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user