1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-28 18:34:39 +00:00

Fix portability-avoid-pragma-once warnings

components/misc/helpviewer.hpp:1:1: error: avoid 'pragma once' directive; use include guards instead [portability-avoid-pragma-once,-warnings-as-errors]
    1 | #pragma once
      | ^

apps/opencs/view/world/tableheadermouseeventhandler.hpp:1:1: error: avoid 'pragma once' directive; use include guards instead [portability-avoid-pragma-once,-warnings-as-errors]
    1 | #pragma once
      | ^
This commit is contained in:
elsid 2025-11-25 00:33:28 +01:00
parent 4186ca6ceb
commit feb9cc004c
No known key found for this signature in database
GPG key ID: B845CB9FEE18AB40
2 changed files with 8 additions and 2 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

@ -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