Fix copy assignment

This commit is contained in:
Gavin MacGregor
2025-04-02 19:05:22 +01:00
parent cc5219a16b
commit 3f93da8c1a
3 changed files with 2 additions and 3 deletions

View File

@@ -121,7 +121,7 @@ private:
int pageNumber, subPageCodes;
} m_composeLink[8];
const int m_defaultCLUT[32] = {
static constexpr int m_defaultCLUT[32] = {
0x000, 0xf00, 0x0f0, 0xff0, 0x00f, 0xf0f, 0x0ff, 0xfff,
0x000, 0x700, 0x070, 0x770, 0x007, 0x707, 0x077, 0x777,
0xf05, 0xf70, 0x0f7, 0xffb, 0x0ca, 0x500, 0x652, 0xc77,

View File

@@ -62,7 +62,7 @@ void PageX26Base::setEnhancementListFromPacket(int p, QByteArray pkt)
// We write "dummy" reserved 11110 Row Triplets in the allocated entries which then get overwritten by the packet contents.
// This is in case of missing packets so we can keep Local Object pointers valid.
while (m_enhancements.size() < (p+1)*13)
m_enhancements.append(m_paddingX26Triplet);
m_enhancements.append( X26Triplet{ 41, 0x1e, 0 } );
X26Triplet newX26Triplet;

View File

@@ -40,7 +40,6 @@ protected:
bool packetFromEnhancementListNeeded(int n) const { return ((m_enhancements.size()+12) / 13) > n; };
X26TripletList m_enhancements;
const X26Triplet m_paddingX26Triplet { 41, 0x1e, 0 };
};
#endif