svx: prefix members of SdrLayerIDSet
See tdf#94879 for motivation. Change-Id: Ibac67e7f8535b231f63a01b7e572595f5b91a996 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158368 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
This commit is contained in:
parent
e2c9b90561
commit
ed7d1c49c0
2 changed files with 12 additions and 12 deletions
|
@ -31,31 +31,31 @@
|
|||
class SVXCORE_DLLPUBLIC SdrLayerIDSet final
|
||||
{
|
||||
// For now, have up to 256 layers
|
||||
sal_uInt8 aData[32];
|
||||
sal_uInt8 m_aData[32];
|
||||
|
||||
public:
|
||||
explicit SdrLayerIDSet(bool bInitVal = false)
|
||||
{
|
||||
memset(aData, bInitVal ? 0xFF : 0x00, sizeof(aData));
|
||||
memset(m_aData, bInitVal ? 0xFF : 0x00, sizeof(m_aData));
|
||||
}
|
||||
|
||||
bool operator!=(const SdrLayerIDSet& rCmpSet) const
|
||||
{
|
||||
return (memcmp(aData, rCmpSet.aData, sizeof(aData))!=0);
|
||||
return (memcmp(m_aData, rCmpSet.m_aData, sizeof(m_aData))!=0);
|
||||
}
|
||||
|
||||
void Set(SdrLayerID a)
|
||||
{
|
||||
const sal_Int16 nId = a.get();
|
||||
if (nId >= 0 && nId < 256)
|
||||
aData[nId / 8] |= 1 << (nId % 8);
|
||||
m_aData[nId / 8] |= 1 << (nId % 8);
|
||||
}
|
||||
|
||||
void Clear(SdrLayerID a)
|
||||
{
|
||||
const sal_Int16 nId = a.get();
|
||||
if (nId >= 0 && nId < 256)
|
||||
aData[nId / 8] &= ~(1 << (nId % 8));
|
||||
m_aData[nId / 8] &= ~(1 << (nId % 8));
|
||||
}
|
||||
|
||||
void Set(SdrLayerID a, bool b)
|
||||
|
@ -69,17 +69,17 @@ public:
|
|||
bool IsSet(SdrLayerID a) const
|
||||
{
|
||||
const sal_Int16 nId = a.get();
|
||||
return nId >= 0 && nId < 256 && (aData[nId / 8] & 1 << nId % 8) != 0;
|
||||
return nId >= 0 && nId < 256 && (m_aData[nId / 8] & 1 << nId % 8) != 0;
|
||||
}
|
||||
|
||||
void SetAll()
|
||||
{
|
||||
memset(aData, 0xFF, sizeof(aData));
|
||||
memset(m_aData, 0xFF, sizeof(m_aData));
|
||||
}
|
||||
|
||||
void ClearAll()
|
||||
{
|
||||
memset(aData, 0x00, sizeof(aData));
|
||||
memset(m_aData, 0x00, sizeof(m_aData));
|
||||
}
|
||||
|
||||
bool IsEmpty() const;
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
bool SdrLayerIDSet::IsEmpty() const
|
||||
{
|
||||
for(sal_uInt8 i : aData)
|
||||
for(sal_uInt8 i : m_aData)
|
||||
{
|
||||
if(i != 0)
|
||||
return false;
|
||||
|
@ -40,7 +40,7 @@ void SdrLayerIDSet::operator&=(const SdrLayerIDSet& r2ndSet)
|
|||
{
|
||||
for(sal_uInt16 i(0); i < 32; i++)
|
||||
{
|
||||
aData[i] &= r2ndSet.aData[i];
|
||||
m_aData[i] &= r2ndSet.m_aData[i];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -59,12 +59,12 @@ void SdrLayerIDSet::PutValue( const css::uno::Any & rAny )
|
|||
sal_Int16 nIndex;
|
||||
for( nIndex = 0; nIndex < nCount; nIndex++ )
|
||||
{
|
||||
aData[nIndex] = static_cast<sal_uInt8>(aSeq[nIndex]);
|
||||
m_aData[nIndex] = static_cast<sal_uInt8>(aSeq[nIndex]);
|
||||
}
|
||||
|
||||
for( ; nIndex < 32; nIndex++ )
|
||||
{
|
||||
aData[nIndex] = 0;
|
||||
m_aData[nIndex] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue