Quellcode durchsuchen

general: Add missing pragma once

Morph vor 3 Jahren
Ursprung
Commit
bffbaddb79
2 geänderte Dateien mit 3 neuen und 4 gelöschten Zeilen
  1. 1 4
      src/common/fixed_point.h
  2. 2 0
      src/core/hle/service/vi/vi_results.h

+ 1 - 4
src/common/fixed_point.h

@@ -4,8 +4,7 @@
 // From: https://github.com/eteran/cpp-utilities/blob/master/fixed/include/cpp-utilities/fixed.h
 // See also: http://stackoverflow.com/questions/79677/whats-the-best-way-to-do-fixed-point-math
 
-#ifndef FIXED_H_
-#define FIXED_H_
+#pragma once
 
 #if __cplusplus >= 201402L
 #define CONSTEXPR14 constexpr
@@ -702,5 +701,3 @@ constexpr bool operator!=(Number lhs, FixedPoint<I, F> rhs) {
 } // namespace Common
 
 #undef CONSTEXPR14
-
-#endif

+ 2 - 0
src/core/hle/service/vi/vi_results.h

@@ -1,6 +1,8 @@
 // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
 // SPDX-License-Identifier: GPL-2.0-or-later
 
+#pragma once
+
 #include "core/hle/result.h"
 
 namespace Service::VI {