RagePhoto: fix build error for older C++ standards
This commit is contained in:
parent
2b878cf416
commit
24d6f58b74
1 changed files with 4 additions and 0 deletions
|
@ -125,6 +125,7 @@ inline void uInt32ToCharLE(uint32_t x, char *y)
|
||||||
/* BEGIN OF RAGEPHOTO CLASS */
|
/* BEGIN OF RAGEPHOTO CLASS */
|
||||||
RagePhoto::RagePhoto()
|
RagePhoto::RagePhoto()
|
||||||
{
|
{
|
||||||
|
#if __cplusplus >= 201707L
|
||||||
m_data = new RagePhotoData {
|
m_data = new RagePhotoData {
|
||||||
.jpeg = nullptr,
|
.jpeg = nullptr,
|
||||||
.description = nullptr,
|
.description = nullptr,
|
||||||
|
@ -135,6 +136,9 @@ RagePhoto::RagePhoto()
|
||||||
.unnamedSum1 = 0,
|
.unnamedSum1 = 0,
|
||||||
.unnamedSum2 = 0
|
.unnamedSum2 = 0
|
||||||
};
|
};
|
||||||
|
#else
|
||||||
|
m_data = new RagePhotoData { 0 };
|
||||||
|
#endif
|
||||||
setBufferDefault();
|
setBufferDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue