Skip to content

Commit 96565e9

Browse files
committed
Merge branch 'fix_clang_tidy_warnings' into 'master'
Fix clang tidy warnings (version 21.1.6) See merge request OpenMW/openmw!5015
2 parents c31b4ef + feb9cc0 commit 96565e9

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

apps/opencs/view/world/tableheadermouseeventhandler.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#pragma once
1+
#ifndef OPENMW_APPS_OPENCS_VIEW_WORLD_TABLEHEADERMOUSEEVENTHANDLER_HPP
2+
#define OPENMW_APPS_OPENCS_VIEW_WORLD_TABLEHEADERMOUSEEVENTHANDLER_HPP
23

34
#include <QWidget>
45

@@ -28,3 +29,5 @@ namespace CSVWorld
2829

2930
}; // class TableHeaderMouseEventHandler
3031
} // namespace CSVWorld
32+
33+
#endif

components/esm4/reader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ namespace ESM4
922922
std::string printLabel(const GroupLabel& label, const std::uint32_t type)
923923
{
924924
std::ostringstream ss;
925-
ss << sGroupType[std::min<std::size_t>(type, std::size(sGroupType))]; // avoid out of range
925+
ss << sGroupType[std::min<std::size_t>(type, std::size(sGroupType) - 1)]; // avoid out of range
926926

927927
switch (type)
928928
{

components/misc/helpviewer.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#pragma once
1+
#ifndef OPENMW_COMPONENTS_MISC_HELPVIEWER_HPP
2+
#define OPENMW_COMPONENTS_MISC_HELPVIEWER_HPP
23

34
namespace Misc
45
{
@@ -7,3 +8,5 @@ namespace Misc
78
void openHelp(const char* url);
89
}
910
}
11+
12+
#endif

0 commit comments

Comments
 (0)