From 0527b63882f5bcb279f7fd6f6dfca5f3e6b43d22 Mon Sep 17 00:00:00 2001 From: Cellie Date: Fri, 23 May 2025 13:50:20 +0200 Subject: [PATCH] This is C++! - Fix header file names - Fix include guard defines --- src/{CachedTile.h => CachedTile.hpp} | 4 ++-- src/{HTTPClientRAII.h => HTTPClientRAII.hpp} | 4 ++-- src/MemoryBuffer.cpp | 2 +- src/{MemoryBuffer.h => MemoryBuffer.hpp} | 4 ++-- src/OpenStreetMap-esp32.cpp | 2 +- ...enStreetMap-esp32.h => OpenStreetMap-esp32.hpp} | 14 +++++++------- src/{ScopedMutex.h => ScopedMutex.hpp} | 4 ++-- src/{TileJob.h => TileJob.hpp} | 6 +++--- 8 files changed, 20 insertions(+), 20 deletions(-) rename src/{CachedTile.h => CachedTile.hpp} (97%) rename src/{HTTPClientRAII.h => HTTPClientRAII.hpp} (97%) rename src/{MemoryBuffer.h => MemoryBuffer.hpp} (98%) rename src/{OpenStreetMap-esp32.h => OpenStreetMap-esp32.hpp} (95%) rename src/{ScopedMutex.h => ScopedMutex.hpp} (97%) rename src/{TileJob.h => TileJob.hpp} (95%) diff --git a/src/CachedTile.h b/src/CachedTile.hpp similarity index 97% rename from src/CachedTile.h rename to src/CachedTile.hpp index 04e8899..17caec1 100644 --- a/src/CachedTile.h +++ b/src/CachedTile.hpp @@ -21,8 +21,8 @@ SPDX-License-Identifier: MIT */ -#ifndef CACHED_TILE_H -#define CACHED_TILE_H +#ifndef CACHEDTILE_HPP_ +#define CACHEDTILE_HPP_ #include #include diff --git a/src/HTTPClientRAII.h b/src/HTTPClientRAII.hpp similarity index 97% rename from src/HTTPClientRAII.h rename to src/HTTPClientRAII.hpp index 9942889..5f71daf 100644 --- a/src/HTTPClientRAII.h +++ b/src/HTTPClientRAII.hpp @@ -20,8 +20,8 @@ SOFTWARE. SPDX-License-Identifier: MIT */ -#ifndef HTTPCLIENTRAII_H -#define HTTPCLIENTRAII_H +#ifndef HTTPCLIENTRAII_HPP_ +#define HTTPCLIENTRAII_HPP_ #include #include diff --git a/src/MemoryBuffer.cpp b/src/MemoryBuffer.cpp index 63b964b..56a617e 100644 --- a/src/MemoryBuffer.cpp +++ b/src/MemoryBuffer.cpp @@ -21,7 +21,7 @@ SPDX-License-Identifier: MIT */ -#include "MemoryBuffer.h" +#include "MemoryBuffer.hpp" #include MemoryBuffer::MemoryBuffer(size_t size) : size_(size) diff --git a/src/MemoryBuffer.h b/src/MemoryBuffer.hpp similarity index 98% rename from src/MemoryBuffer.h rename to src/MemoryBuffer.hpp index 67024cc..9d0f551 100644 --- a/src/MemoryBuffer.h +++ b/src/MemoryBuffer.hpp @@ -21,8 +21,8 @@ SPDX-License-Identifier: MIT */ -#ifndef MEMORYBUFFER_H -#define MEMORYBUFFER_H +#ifndef MEMORYBUFFER_HPP_ +#define MEMORYBUFFER_HPP_ #include #include diff --git a/src/OpenStreetMap-esp32.cpp b/src/OpenStreetMap-esp32.cpp index 1b6e846..8fb1de9 100644 --- a/src/OpenStreetMap-esp32.cpp +++ b/src/OpenStreetMap-esp32.cpp @@ -21,7 +21,7 @@ SPDX-License-Identifier: MIT */ -#include "OpenStreetMap-esp32.h" +#include "OpenStreetMap-esp32.hpp" OpenStreetMap::~OpenStreetMap() { diff --git a/src/OpenStreetMap-esp32.h b/src/OpenStreetMap-esp32.hpp similarity index 95% rename from src/OpenStreetMap-esp32.h rename to src/OpenStreetMap-esp32.hpp index 1bd6344..4b41967 100644 --- a/src/OpenStreetMap-esp32.h +++ b/src/OpenStreetMap-esp32.hpp @@ -21,8 +21,8 @@ SPDX-License-Identifier: MIT */ -#ifndef OPENSTREETMAP_ESP32_H -#define OPENSTREETMAP_ESP32_H +#ifndef OPENSTREETMAP_ESP32_HPP_ +#define OPENSTREETMAP_ESP32_HPP_ #include #include @@ -33,11 +33,11 @@ #include #include -#include "CachedTile.h" -#include "ScopedMutex.h" -#include "TileJob.h" -#include "MemoryBuffer.h" -#include "HTTPClientRAII.h" +#include "CachedTile.hpp" +#include "ScopedMutex.hpp" +#include "TileJob.hpp" +#include "MemoryBuffer.hpp" +#include "HTTPClientRAII.hpp" constexpr uint16_t OSM_TILESIZE = 256; constexpr uint16_t OSM_TILE_TIMEOUT_MS = 2500; diff --git a/src/ScopedMutex.h b/src/ScopedMutex.hpp similarity index 97% rename from src/ScopedMutex.h rename to src/ScopedMutex.hpp index b6d61bd..08ffa41 100644 --- a/src/ScopedMutex.h +++ b/src/ScopedMutex.hpp @@ -21,8 +21,8 @@ SOFTWARE. SPDX-License-Identifier: MIT */ -#ifndef SCOPEDMUTEX_H -#define SCOPEDMUTEX_H +#ifndef SCOPEDMUTEX_HPP_ +#define SCOPEDMUTEX_HPP_ #include #include diff --git a/src/TileJob.h b/src/TileJob.hpp similarity index 95% rename from src/TileJob.h rename to src/TileJob.hpp index 5da1a91..60717e7 100644 --- a/src/TileJob.h +++ b/src/TileJob.hpp @@ -21,10 +21,10 @@ SPDX-License-Identifier: MIT */ -#ifndef TILEJOB -#define TILEJOB +#ifndef TILEJOB_HPP_ +#define TILEJOB_HPP_ -#include "CachedTile.h" +#include "CachedTile.hpp" struct TileJob {