summaryrefslogtreecommitdiffstats
path: root/kig/misc/special_constructors.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2024-04-14 20:58:48 +0200
committerSlávek Banko <[email protected]>2024-04-15 03:00:46 +0200
commit46fd80ef2d9be3be7ab361fa85fde98f900a39cf (patch)
treeb241ab811764ac819f31422e400a01074c7504c5 /kig/misc/special_constructors.cpp
parent2b50eee093583106e736f40d2e4780c661138645 (diff)
downloadtdeedu-46fd80ef2d9be3be7ab361fa85fde98f900a39cf.tar.gz
tdeedu-46fd80ef2d9be3be7ab361fa85fde98f900a39cf.zip
Fix compatibility with C++17.r14.1.2
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 0bcb76d981bf8ebd8806d6ae73cdcb77b5f4a124)
Diffstat (limited to 'kig/misc/special_constructors.cpp')
-rw-r--r--kig/misc/special_constructors.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kig/misc/special_constructors.cpp b/kig/misc/special_constructors.cpp
index 1cc27ecb..c8137966 100644
--- a/kig/misc/special_constructors.cpp
+++ b/kig/misc/special_constructors.cpp
@@ -116,7 +116,7 @@ void ConicRadicalConstructor::drawprelim(
{
Args args;
std::transform( parents.begin(), parents.end(),
- std::back_inserter( args ), std::mem_fun( &ObjectCalcer::imp ) );
+ std::back_inserter( args ), std::mem_fn( &ObjectCalcer::imp ) );
for ( int i = -1; i < 2; i += 2 )
{
IntImp root( i );
@@ -803,7 +803,7 @@ void PolygonBCVConstructor::drawprelim( const ObjectDrawer& drawer, KigPainter&
Args args;
std::transform( parents.begin(), parents.end(),
- std::back_inserter( args ), std::mem_fun( &ObjectCalcer::imp ) );
+ std::back_inserter( args ), std::mem_fn( &ObjectCalcer::imp ) );
ObjectImp* data = mtype->calc( args, doc );
drawer.draw( *data, p, true );
@@ -1196,7 +1196,7 @@ void MeasureTransportConstructor::drawprelim( const ObjectDrawer& drawer,
Args args;
using namespace std;
transform( parents.begin(), parents.end(),
- back_inserter( args ), mem_fun( &ObjectCalcer::imp ) );
+ back_inserter( args ), mem_fn( &ObjectCalcer::imp ) );
ObjectImp* data = mtype->calc( args, doc );
drawer.draw( *data, p, true );
delete data;