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,8 +1377,10 @@ sal_Int8 ScChildrenShapes::Compare(const ScAccessibleShapeData* pData1, ...@@ -1377,8 +1377,10 @@ sal_Int8 ScChildrenShapes::Compare(const ScAccessibleShapeData* pData1,
return nResult; return nResult;
} }
struct ScVisAreaChanged namespace
{ {
struct ScVisAreaChanged
{
ScAccessibleDocument* mpAccDoc; ScAccessibleDocument* mpAccDoc;
ScVisAreaChanged(ScAccessibleDocument* pAccDoc) : mpAccDoc(pAccDoc) {} ScVisAreaChanged(ScAccessibleDocument* pAccDoc) : mpAccDoc(pAccDoc) {}
void operator() (const ScAccessibleShapeData* pAccShapeData) const void operator() (const ScAccessibleShapeData* pAccShapeData) const
...@@ -1388,7 +1390,8 @@ struct ScVisAreaChanged ...@@ -1388,7 +1390,8 @@ struct ScVisAreaChanged
pAccShapeData->pAccShape->ViewForwarderChanged(::accessibility::IAccessibleViewForwarderListener::VISIBLE_AREA, mpAccDoc); pAccShapeData->pAccShape->ViewForwarderChanged(::accessibility::IAccessibleViewForwarderListener::VISIBLE_AREA, mpAccDoc);
} }
} }
}; };
}
void ScChildrenShapes::VisAreaChanged() const void ScChildrenShapes::VisAreaChanged() const
{ {
......
...@@ -846,8 +846,10 @@ void ScShapeChildren::DataChanged() ...@@ -846,8 +846,10 @@ void ScShapeChildren::DataChanged()
} }
} }
struct ScVisAreaChanged namespace
{ {
struct ScVisAreaChanged
{
const ScIAccessibleViewForwarder* mpViewForwarder; const ScIAccessibleViewForwarder* mpViewForwarder;
ScVisAreaChanged(const ScIAccessibleViewForwarder* pViewForwarder) : mpViewForwarder(pViewForwarder) {} ScVisAreaChanged(const ScIAccessibleViewForwarder* pViewForwarder) : mpViewForwarder(pViewForwarder) {}
void operator() (const ScShapeChild& rAccShapeData) const void operator() (const ScShapeChild& rAccShapeData) const
...@@ -857,7 +859,8 @@ struct ScVisAreaChanged ...@@ -857,7 +859,8 @@ struct ScVisAreaChanged
rAccShapeData.mpAccShape->ViewForwarderChanged(::accessibility::IAccessibleViewForwarderListener::VISIBLE_AREA, mpViewForwarder); rAccShapeData.mpAccShape->ViewForwarderChanged(::accessibility::IAccessibleViewForwarderListener::VISIBLE_AREA, mpViewForwarder);
} }
} }
}; };
}
void ScShapeChildren::VisAreaChanged() const 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