Cppcheck warnings.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-01-06 10:29:38 +02:00
parent 0024543764
commit 753e9c76f5
2 changed files with 3 additions and 6 deletions

View File

@ -155,8 +155,7 @@ void TapePreferencesPathPage::EditPath()
{
if (usedNotExistedDir)
{
QDir directory(path);
directory.rmpath(QChar('.'));
QDir(path).rmpath(QChar('.'));
}
DefaultPath();

View File

@ -178,8 +178,7 @@ void PreferencesPathPage::EditPath()
{
if (usedNotExistedDir)
{
QDir directory(path);
directory.rmpath(QChar('.'));
QDir(path).rmpath(QChar('.'));
}
DefaultPath();
return;
@ -190,8 +189,7 @@ void PreferencesPathPage::EditPath()
if (usedNotExistedDir)
{
QDir directory(path);
directory.rmpath(QChar('.'));
QDir(path).rmpath(QChar('.'));
}
}