Kaydet (Commit) b66dc3cd authored tarafından Caolán McNamara's avatar Caolán McNamara

WaE: -Wodr, two different ScVisAreaChanged classes

Change-Id: I036632dcc7a91eb43aac2bdc2dee7e3355227f24
üst 32b46b74
......@@ -1377,18 +1377,21 @@ sal_Int8 ScChildrenShapes::Compare(const ScAccessibleShapeData* pData1,
return nResult;
}
struct ScVisAreaChanged
namespace
{
ScAccessibleDocument* mpAccDoc;
ScVisAreaChanged(ScAccessibleDocument* pAccDoc) : mpAccDoc(pAccDoc) {}
void operator() (const ScAccessibleShapeData* pAccShapeData) const
struct ScVisAreaChanged
{
if (pAccShapeData && pAccShapeData->pAccShape)
ScAccessibleDocument* mpAccDoc;
ScVisAreaChanged(ScAccessibleDocument* pAccDoc) : mpAccDoc(pAccDoc) {}
void operator() (const ScAccessibleShapeData* pAccShapeData) const
{
pAccShapeData->pAccShape->ViewForwarderChanged(::accessibility::IAccessibleViewForwarderListener::VISIBLE_AREA, mpAccDoc);
if (pAccShapeData && pAccShapeData->pAccShape)
{
pAccShapeData->pAccShape->ViewForwarderChanged(::accessibility::IAccessibleViewForwarderListener::VISIBLE_AREA, mpAccDoc);
}
}
}
};
};
}
void ScChildrenShapes::VisAreaChanged() const
{
......
......@@ -846,18 +846,21 @@ void ScShapeChildren::DataChanged()
}
}
struct ScVisAreaChanged
namespace
{
const ScIAccessibleViewForwarder* mpViewForwarder;
ScVisAreaChanged(const ScIAccessibleViewForwarder* pViewForwarder) : mpViewForwarder(pViewForwarder) {}
void operator() (const ScShapeChild& rAccShapeData) const
struct ScVisAreaChanged
{
if (rAccShapeData.mpAccShape)
const ScIAccessibleViewForwarder* mpViewForwarder;
ScVisAreaChanged(const ScIAccessibleViewForwarder* pViewForwarder) : mpViewForwarder(pViewForwarder) {}
void operator() (const ScShapeChild& rAccShapeData) const
{
rAccShapeData.mpAccShape->ViewForwarderChanged(::accessibility::IAccessibleViewForwarderListener::VISIBLE_AREA, mpViewForwarder);
if (rAccShapeData.mpAccShape)
{
rAccShapeData.mpAccShape->ViewForwarderChanged(::accessibility::IAccessibleViewForwarderListener::VISIBLE_AREA, mpViewForwarder);
}
}
}
};
};
}
void ScShapeChildren::VisAreaChanged() const
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment