TetraIF migration and Unittest Implementation for it
Entire-Checkpoint: 14d1fef0cf36
This commit is contained in:
1 parent
a86f9b5bac
commit
ba212f9dce
78 files changed
+1611
-640
No files matched your search
@@ -31,7 +31,8 @@ LogViewField::LogViewField(const QString& a_name, const E_FieldKind a_kind, cons
|
||||
m_HasContent(true),
|
||||
m_bDeleteXdr(false),
|
||||
m_Kind(a_kind),
|
||||
m_XdrElement(a_xdrElement)
|
||||
m_XdrElement(a_xdrElement),
|
||||
m_logger(getLogger("LogViewField"))
|
||||
{
|
||||
}
|
||||
|
||||
@@ -143,8 +144,8 @@ int64_t LogViewField::getHighestValue() const
|
||||
|
||||
uint16_t bitSize = 8*static_cast<const LogViewXdrStandardType*>(m_XdrElement)->getEditSize();
|
||||
|
||||
if ((0 == m_Name.compare(QLatin1String("utm nordwert"), Qt::CaseInsensitive)) ||
|
||||
(0 == m_Name.compare(QLatin1String("utm ostwert"), Qt::CaseInsensitive)))
|
||||
if ((0 == m_Name.compare(QStringLiteral("utm nordwert"), Qt::CaseInsensitive)) ||
|
||||
(0 == m_Name.compare(QStringLiteral("utm ostwert"), Qt::CaseInsensitive)))
|
||||
bitSize -= 8;
|
||||
|
||||
switch (static_cast<const LogViewXdrStandardType*>(m_XdrElement)->getValueKind()) {
|
||||
@@ -152,7 +153,7 @@ int64_t LogViewField::getHighestValue() const
|
||||
return 1;
|
||||
case LogViewXdrStandardType::e_Signed:
|
||||
bitSize--;
|
||||
Q_FALLTHROUGH();
|
||||
[[fallthrough]];
|
||||
case LogViewXdrStandardType::e_Unsigned:
|
||||
case LogViewXdrStandardType::e_Data:
|
||||
highest = highest << bitSize;
|
||||
@@ -228,7 +229,7 @@ QString LogViewField::makeClean(const QString &text)
|
||||
{
|
||||
QString a_uncleanText = text;
|
||||
|
||||
if (a_uncleanText.endsWith(QLatin1String("_rt")))
|
||||
if (a_uncleanText.endsWith(QStringLiteral("_rt")))
|
||||
a_uncleanText = a_uncleanText.left(a_uncleanText.length() - 3);
|
||||
|
||||
|
||||
@@ -255,13 +256,13 @@ QString LogViewField::makeClean(const QString &text)
|
||||
bool LogViewField::isDateTimeField() const
|
||||
{
|
||||
QString name = m_Name.toLower();
|
||||
return name == QLatin1String("gps_zeit");
|
||||
return name == QStringLiteral("gps_zeit");
|
||||
}
|
||||
|
||||
bool LogViewField::isMSecsField() const
|
||||
{
|
||||
QString name = m_Name.toLower();
|
||||
return (name == QLatin1String("timestamp")) || (name == QLatin1String("effectstart"));
|
||||
return (name == QStringLiteral("timestamp")) || (name == QStringLiteral("effectstart"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user