Skip to content

Commit f62774b

Browse files
This is C++! (#64)
- Fix header file names - Fix include guard defines
1 parent f2c51c9 commit f62774b

File tree

8 files changed

+20
-20
lines changed

8 files changed

+20
-20
lines changed

src/CachedTile.h renamed to src/CachedTile.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
SPDX-License-Identifier: MIT
2222
*/
2323

24-
#ifndef CACHED_TILE_H
25-
#define CACHED_TILE_H
24+
#ifndef CACHEDTILE_HPP_
25+
#define CACHEDTILE_HPP_
2626

2727
#include <Arduino.h>
2828
#include <freertos/semphr.h>

src/HTTPClientRAII.h renamed to src/HTTPClientRAII.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
SOFTWARE.
2121
SPDX-License-Identifier: MIT
2222
*/
23-
#ifndef HTTPCLIENTRAII_H
24-
#define HTTPCLIENTRAII_H
23+
#ifndef HTTPCLIENTRAII_HPP_
24+
#define HTTPCLIENTRAII_HPP_
2525

2626
#include <Arduino.h>
2727
#include <HTTPClient.h>

src/MemoryBuffer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
SPDX-License-Identifier: MIT
2222
*/
2323

24-
#include "MemoryBuffer.h"
24+
#include "MemoryBuffer.hpp"
2525
#include <Arduino.h>
2626

2727
MemoryBuffer::MemoryBuffer(size_t size) : size_(size)

src/MemoryBuffer.h renamed to src/MemoryBuffer.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
SPDX-License-Identifier: MIT
2222
*/
2323

24-
#ifndef MEMORYBUFFER_H
25-
#define MEMORYBUFFER_H
24+
#ifndef MEMORYBUFFER_HPP_
25+
#define MEMORYBUFFER_HPP_
2626

2727
#include <Arduino.h>
2828
#include <memory>

src/OpenStreetMap-esp32.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
SPDX-License-Identifier: MIT
2222
*/
2323

24-
#include "OpenStreetMap-esp32.h"
24+
#include "OpenStreetMap-esp32.hpp"
2525

2626
OpenStreetMap::~OpenStreetMap()
2727
{

src/OpenStreetMap-esp32.h renamed to src/OpenStreetMap-esp32.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
SPDX-License-Identifier: MIT
2222
*/
2323

24-
#ifndef OPENSTREETMAP_ESP32_H
25-
#define OPENSTREETMAP_ESP32_H
24+
#ifndef OPENSTREETMAP_ESP32_HPP_
25+
#define OPENSTREETMAP_ESP32_HPP_
2626

2727
#include <Arduino.h>
2828
#include <WiFiClient.h>
@@ -33,11 +33,11 @@
3333
#include <LovyanGFX.hpp>
3434
#include <PNGdec.h>
3535

36-
#include "CachedTile.h"
37-
#include "ScopedMutex.h"
38-
#include "TileJob.h"
39-
#include "MemoryBuffer.h"
40-
#include "HTTPClientRAII.h"
36+
#include "CachedTile.hpp"
37+
#include "ScopedMutex.hpp"
38+
#include "TileJob.hpp"
39+
#include "MemoryBuffer.hpp"
40+
#include "HTTPClientRAII.hpp"
4141

4242
constexpr uint16_t OSM_TILESIZE = 256;
4343
constexpr uint16_t OSM_TILE_TIMEOUT_MS = 2500;

src/ScopedMutex.h renamed to src/ScopedMutex.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
SOFTWARE.
2222
SPDX-License-Identifier: MIT
2323
*/
24-
#ifndef SCOPEDMUTEX_H
25-
#define SCOPEDMUTEX_H
24+
#ifndef SCOPEDMUTEX_HPP_
25+
#define SCOPEDMUTEX_HPP_
2626

2727
#include <Arduino.h>
2828
#include <freertos/semphr.h>

src/TileJob.h renamed to src/TileJob.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
SPDX-License-Identifier: MIT
2222
*/
2323

24-
#ifndef TILEJOB
25-
#define TILEJOB
24+
#ifndef TILEJOB_HPP_
25+
#define TILEJOB_HPP_
2626

27-
#include "CachedTile.h"
27+
#include "CachedTile.hpp"
2828

2929
struct TileJob
3030
{

0 commit comments

Comments
 (0)