Refactoring.

Code style.
This commit is contained in:
Roman Telezhynskyi 2023-08-13 10:51:54 +03:00
parent be2aaf5cdf
commit 7f332548c2
2 changed files with 18 additions and 22 deletions

View File

@ -371,11 +371,9 @@ auto VPoster::CountRows(int height, PageOrientation orientation) const -> int
{ {
return 1; return 1;
} }
else
{
return qCeil(imgLength / (pageLength - static_cast<int>(allowance))); return qCeil(imgLength / (pageLength - static_cast<int>(allowance)));
} }
}
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
auto VPoster::CountColumns(int width, PageOrientation orientation) const -> int auto VPoster::CountColumns(int width, PageOrientation orientation) const -> int
@ -396,11 +394,9 @@ auto VPoster::CountColumns(int width, PageOrientation orientation) const -> int
{ {
return 1; return 1;
} }
else
{
return qCeil(imgLength / (pageLength - static_cast<int>(allowance))); return qCeil(imgLength / (pageLength - static_cast<int>(allowance)));
} }
}
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
auto VPoster::Cut(int i, int j, const QSize &imageRect, PageOrientation orientation) const -> PosterData auto VPoster::Cut(int i, int j, const QSize &imageRect, PageOrientation orientation) const -> PosterData

View File

@ -27,8 +27,8 @@
*************************************************************************/ *************************************************************************/
#include "tst_qmutokenparser.h" #include "tst_qmutokenparser.h"
#include "../qmuparser/qmutokenparser.h"
#include "../qmuparser/qmudef.h" #include "../qmuparser/qmudef.h"
#include "../qmuparser/qmutokenparser.h"
#include <QtTest> #include <QtTest>
@ -142,8 +142,8 @@ auto TST_QmuTokenParser::IsSingleFromUser(const QString &formula) -> bool
return false; // if don't know say no return false; // if don't know say no
} }
QMap<vsizetype, QString> tokens; QMap<qmusizetype, QString> tokens;
QMap<vsizetype, QString> numbers; QMap<qmusizetype, QString> numbers;
try try
{ {