Date string parser. Move statement

This commit is contained in:
Bjørn Erik Jensen committed 2017-10-05 16:26:39 +02:00
1 parent c68a96de30
commit 282d8ef080
1 file changed
+1 -1
@@ -107,10 +107,10 @@ bool RiaDateStringParser::tryParseDayFirst(const std::string& s, int& year, int&
//--------------------------------------------------------------------------------------------------
bool RiaDateStringParser::tryParseYear(const std::string& s, int &year)
{
auto today = QDate::currentDate();
if (containsAlphabetic(s)) return false;
try
{
auto today = QDate::currentDate();
int y = std::stoi(s);
if (y > 1970 && y <= today.year())
{