Cppcheck warnings.

This commit is contained in:
Roman Telezhynskyi 2020-03-24 17:41:12 +02:00
parent c1453f1715
commit f762d81b38
2 changed files with 2 additions and 3 deletions

View File

@ -404,8 +404,7 @@ bool MainWindowsNoGUI::GenerateLayout(VLayoutGenerator& lGenerator)
|| (nestingState == LayoutErrors::NoError && not qFuzzyIsNull(lGenerator.GetEfficiencyCoefficient())
&& efficiency >= lGenerator.GetEfficiencyCoefficient()))
{
if (not lGenerator.IsPreferOneSheetSolution()
|| (lGenerator.IsPreferOneSheetSolution() && lGenerator.PapersCount() == 1))
if (not lGenerator.IsPreferOneSheetSolution() || lGenerator.PapersCount() == 1)
{
break;
}

View File

@ -41,7 +41,7 @@ namespace
class MultiSelectCompleter : public QCompleter
{
public:
MultiSelectCompleter(QObject* parent=nullptr);
explicit MultiSelectCompleter(QObject* parent=nullptr);
MultiSelectCompleter(const QStringList& items, QObject* parent=nullptr);
virtual ~MultiSelectCompleter() =default;