From 418ffcadb0a5334ebe621369c14d6c3dd651acce Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Wed, 24 Jan 2024 11:00:22 +0100 Subject: Fixed compilation issues and use of deprecated C++ features * Fixed compiler errors due to dynamic exception specifications * Replace std::auto_ptr with std::unique_ptr * Replace std::mem_fun with std::mem_fn * Prefix for_each with std:: (apparently not needed before) * Just use lambda instead of std::bind2nd * Removed usages of std::unary_function --- src/gui/widgets/scrollarea.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/scrollarea.cpp') diff --git a/src/gui/widgets/scrollarea.cpp b/src/gui/widgets/scrollarea.cpp index d5e824e1..c95adeaa 100644 --- a/src/gui/widgets/scrollarea.cpp +++ b/src/gui/widgets/scrollarea.cpp @@ -66,9 +66,9 @@ ScrollArea::~ScrollArea() if (instances == 0) { - for_each(background.grid, background.grid + 9, dtor()); - for_each(vMarker.grid, vMarker.grid + 9, dtor()); - for_each(vMarkerHi.grid, vMarkerHi.grid + 9, dtor()); + std::for_each(background.grid, background.grid + 9, dtor()); + std::for_each(vMarker.grid, vMarker.grid + 9, dtor()); + std::for_each(vMarkerHi.grid, vMarkerHi.grid + 9, dtor()); buttons[UP][0]->decRef(); buttons[UP][1]->decRef(); -- cgit v1.2.3-70-g09d2