summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2024-04-14 18:23:45 +0200
committerSlávek Banko <slavek.banko@axis.cz>2024-04-15 03:01:45 +0200
commitce10966023e003aa02d2da68a0162907be9e619d (patch)
tree014f1f147903e44b8439528f415fbdffa290bbd9
parent036f40f1913b18ec0d95bdbe84d4f2b91b5f391b (diff)
downloadtdegraphics-ce10966023e003aa02d2da68a0162907be9e619d.tar.gz
tdegraphics-ce10966023e003aa02d2da68a0162907be9e619d.zip
Fix compatibility with C++17.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 03cf41d9b015fab3d30f98b50923d0c296fa9824)
-rw-r--r--kghostview/kgvdocument.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kghostview/kgvdocument.cpp b/kghostview/kgvdocument.cpp
index c08b68f1..ec70944d 100644
--- a/kghostview/kgvdocument.cpp
+++ b/kghostview/kgvdocument.cpp
@@ -618,7 +618,7 @@ bool KGVDocument::savePages( const TQString& saveFileName,
PageList normedPageList;
transform( pageList.begin(), pageList.end(),
back_inserter( normedPageList ),
- bind2nd( minus<int>(), minPage - 1 ) );
+ bind( minus<int>(), std::placeholders::_1, minPage - 1 ) );
// Finally select the desired pages from the converted file.
psCopyDoc( psSaveFile.name(), saveFileName, normedPageList );