Use initializer list in ISorter.

pull/86/head
Andreas Jönsson 2015-05-17 21:50:06 +02:00
parent be230c1a29
commit 91da641adc
1 changed files with 1 additions and 4 deletions

View File

@ -42,10 +42,7 @@ protected:
}
public:
ISorter(bool isDescending)
{
_isDescending = isDescending;
};
ISorter(bool isDescending) : _isDescending(isDescending) { };
virtual ~ISorter() { };
virtual std::vector<generic_string> sort(std::vector<generic_string> lines) = 0;
};