mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
fix cppcheck warning
This commit is contained in:
committed by
Klaus Basan
parent
ab1a200e78
commit
e271e6e0fd
@@ -131,10 +131,7 @@ namespace BlackMisc
|
||||
QString getSwiftShareDirImpl()
|
||||
{
|
||||
QDir dir(CDirectoryUtils::binDirectory());
|
||||
bool success = true;
|
||||
|
||||
success = dir.cd("../share");
|
||||
|
||||
const bool success = dir.cd("../share");
|
||||
if (success)
|
||||
{
|
||||
Q_ASSERT_X(dir.exists(), Q_FUNC_INFO, "missing dir");
|
||||
|
||||
Reference in New Issue
Block a user