diff options
author | Slávek Banko <[email protected]> | 2024-04-14 11:53:43 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2024-04-14 11:53:43 +0200 |
commit | d4cf702259ef8dd4aad95c9c7d15d318712a59fe (patch) | |
tree | 11c501db8e2f8e3eda6bbdda5513237dcb50327f /src/rtf2html | |
parent | 9232c032ada7a23126772c90eba8cfcf7c2b01a0 (diff) | |
download | tellico-d4cf702259ef8dd4aad95c9c7d15d318712a59fe.tar.gz tellico-d4cf702259ef8dd4aad95c9c7d15d318712a59fe.zip |
Fix compatibility with C++17.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'src/rtf2html')
-rw-r--r-- | src/rtf2html/rtf_table.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/rtf2html/rtf_table.cpp b/src/rtf2html/rtf_table.cpp index b5cdf7b..9126844 100644 --- a/src/rtf2html/rtf_table.cpp +++ b/src/rtf2html/rtf_table.cpp @@ -106,8 +106,9 @@ std::string table::make() cell_def_2= std::find_if((*span_row)->CellDefs->begin(), (*span_row)->CellDefs->end(), - std::bind2nd( - std::mem_fun(&table_cell_def::right_equals), + std::bind( + std::mem_fn(&table_cell_def::right_equals), + std::placeholders::_1, (*cell_def)->Right)); if (cell_def_2==(*span_row)->CellDefs->end()) break; @@ -157,8 +158,9 @@ std::string table::make() cell_def_2= std::find_if((*row2)->CellDefs->begin(), (*row2)->CellDefs->end(), - std::bind2nd( - std::mem_fun(&table_cell_def::right_equals), + std::bind( + std::mem_fn(&table_cell_def::right_equals), + std::placeholders::_1, left)); if (cell_def_2!=(*row2)->CellDefs->end()) { @@ -167,8 +169,9 @@ std::string table::make() cell_def_2= std::find_if((*row2)->CellDefs->begin(), (*row2)->CellDefs->end(), - std::bind2nd( - std::mem_fun(&table_cell_def::left_equals), + std::bind( + std::mem_fn(&table_cell_def::left_equals), + std::placeholders::_1, right)); if (cell_def_2!=(*row2)->CellDefs->end()) { |