mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-29 22:04:35 +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:
parent
4186ca6ceb
commit
feb9cc004c
2 changed files with 8 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
#pragma once
|
#ifndef OPENMW_APPS_OPENCS_VIEW_WORLD_TABLEHEADERMOUSEEVENTHANDLER_HPP
|
||||||
|
#define OPENMW_APPS_OPENCS_VIEW_WORLD_TABLEHEADERMOUSEEVENTHANDLER_HPP
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
|
|
@ -28,3 +29,5 @@ namespace CSVWorld
|
||||||
|
|
||||||
}; // class TableHeaderMouseEventHandler
|
}; // class TableHeaderMouseEventHandler
|
||||||
} // namespace CSVWorld
|
} // namespace CSVWorld
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
#pragma once
|
#ifndef OPENMW_COMPONENTS_MISC_HELPVIEWER_HPP
|
||||||
|
#define OPENMW_COMPONENTS_MISC_HELPVIEWER_HPP
|
||||||
|
|
||||||
namespace Misc
|
namespace Misc
|
||||||
{
|
{
|
||||||
|
|
@ -7,3 +8,5 @@ namespace Misc
|
||||||
void openHelp(const char* url);
|
void openHelp(const char* url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue