Skip to content

Commit 3417b6a

Browse files
committed
[Ref] Plugins: DigiBooster: Use mpt::as_raw_memory() instead of reinterpret_cast.
[Ref] Plugins: SymMOD: Use mpt::as_raw_memory() instead of reinterpret_cast. git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@25196 56274372-70c3-4bfc-bfc3-4c3a0b034d27
1 parent e9e2e07 commit 3417b6a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

soundlib/plugins/DigiBoosterEcho.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,7 @@ CString DigiBoosterEcho::GetParamDisplay(PlugParamIndex param)
199199

200200
IMixPlugin::ChunkData DigiBoosterEcho::GetChunk(bool)
201201
{
202-
auto data = reinterpret_cast<const std::byte *>(&m_chunk);
203-
return ChunkData(data, sizeof(m_chunk));
202+
return ChunkData(mpt::as_raw_memory(m_chunk));
204203
}
205204

206205

soundlib/plugins/SymMODEcho.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,7 @@ CString SymMODEcho::GetParamDisplay(PlugParamIndex param)
233233

234234
IMixPlugin::ChunkData SymMODEcho::GetChunk(bool)
235235
{
236-
auto data = reinterpret_cast<const std::byte *>(&m_chunk);
237-
return ChunkData(data, sizeof(m_chunk));
236+
return ChunkData(mpt::as_raw_memory(m_chunk));
238237
}
239238

240239

0 commit comments

Comments
 (0)