1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-29 14:04:30 +00:00

Merge branch 'fix_clang_tidy_warnings' into 'master'

Fix clang tidy warnings (version 21.1.6)

See merge request OpenMW/openmw!5015
This commit is contained in:
Alexei Kotov 2025-11-27 01:16:51 +03:00
commit 96565e9afb
3 changed files with 9 additions and 3 deletions

View file

@ -1,4 +1,5 @@
#pragma once
#ifndef OPENMW_APPS_OPENCS_VIEW_WORLD_TABLEHEADERMOUSEEVENTHANDLER_HPP
#define OPENMW_APPS_OPENCS_VIEW_WORLD_TABLEHEADERMOUSEEVENTHANDLER_HPP
#include <QWidget>
@ -28,3 +29,5 @@ namespace CSVWorld
}; // class TableHeaderMouseEventHandler
} // namespace CSVWorld
#endif

View file

@ -922,7 +922,7 @@ namespace ESM4
std::string printLabel(const GroupLabel& label, const std::uint32_t type)
{
std::ostringstream ss;
ss << sGroupType[std::min<std::size_t>(type, std::size(sGroupType))]; // avoid out of range
ss << sGroupType[std::min<std::size_t>(type, std::size(sGroupType) - 1)]; // avoid out of range
switch (type)
{

View file

@ -1,4 +1,5 @@
#pragma once
#ifndef OPENMW_COMPONENTS_MISC_HELPVIEWER_HPP
#define OPENMW_COMPONENTS_MISC_HELPVIEWER_HPP
namespace Misc
{
@ -7,3 +8,5 @@ namespace Misc
void openHelp(const char* url);
}
}
#endif