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()) || (nestingState == LayoutErrors::NoError && not qFuzzyIsNull(lGenerator.GetEfficiencyCoefficient())
&& efficiency >= lGenerator.GetEfficiencyCoefficient())) && efficiency >= lGenerator.GetEfficiencyCoefficient()))
{ {
if (not lGenerator.IsPreferOneSheetSolution() if (not lGenerator.IsPreferOneSheetSolution() || lGenerator.PapersCount() == 1)
|| (lGenerator.IsPreferOneSheetSolution() && lGenerator.PapersCount() == 1))
{ {
break; break;
} }

View File

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