Skip to content

Commit 70c1d7b

Browse files
committed
const
1 parent 2929d4e commit 70c1d7b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/DMDUtil/DMD.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ class DMDUTILAPI DMD
156156
void DumpDMDRaw();
157157
LevelDMD* CreateLevelDMD(uint16_t width, uint16_t height, bool sam);
158158
bool DestroyLevelDMD(LevelDMD* pLevelDMD);
159-
void AddRGB24DMD(RGB24DMD* pRGB24DMD);
160-
RGB24DMD* CreateRGB24DMD(uint16_t width, uint16_t height);
159+
void AddRGB24DMD(RGB24DMD* const pRGB24DMD);
160+
RGB24DMD* const CreateRGB24DMD(uint16_t width, uint16_t height);
161161
bool DestroyRGB24DMD(RGB24DMD* pRGB24DMD);
162162
ConsoleDMD* CreateConsoleDMD(bool overwrite, FILE* out = stdout);
163163
bool DestroyConsoleDMD(ConsoleDMD* pConsoleDMD);

src/DMD.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ bool DMD::DestroyLevelDMD(LevelDMD* pLevelDMD)
280280
return false;
281281
}
282282

283-
void DMD::AddRGB24DMD(RGB24DMD* pRGB24DMD)
283+
void DMD::AddRGB24DMD(RGB24DMD* const pRGB24DMD)
284284
{
285285
m_rgb24DMDs.push_back(pRGB24DMD);
286286
if (!m_pRGB24DMDThread) {
@@ -289,7 +289,7 @@ void DMD::AddRGB24DMD(RGB24DMD* pRGB24DMD)
289289
}
290290
}
291291

292-
RGB24DMD* DMD::CreateRGB24DMD(uint16_t width, uint16_t height)
292+
RGB24DMD* const DMD::CreateRGB24DMD(uint16_t width, uint16_t height)
293293
{
294294
RGB24DMD* const pRGB24DMD = new RGB24DMD(width, height);
295295
AddRGB24DMD(pRGB24DMD);

0 commit comments

Comments
 (0)