From 91da641adc1323d4647526a095c25b2d92ddee88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20J=C3=B6nsson?= Date: Sun, 17 May 2015 21:50:06 +0200 Subject: [PATCH] Use initializer list in ISorter. --- PowerEditor/src/MISC/Common/Sorters.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/PowerEditor/src/MISC/Common/Sorters.h b/PowerEditor/src/MISC/Common/Sorters.h index 2e758772a..b6a1c29bc 100644 --- a/PowerEditor/src/MISC/Common/Sorters.h +++ b/PowerEditor/src/MISC/Common/Sorters.h @@ -42,10 +42,7 @@ protected: } public: - ISorter(bool isDescending) - { - _isDescending = isDescending; - }; + ISorter(bool isDescending) : _isDescending(isDescending) { }; virtual ~ISorter() { }; virtual std::vector sort(std::vector lines) = 0; };