Cppcheck warnings.
This commit is contained in:
parent
c1453f1715
commit
f762d81b38
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user