Kaydet (Commit) f5d15f41 authored tarafından Noel Grandin's avatar Noel Grandin

convert ListenerGroupType to scoped enum

Change-Id: If561c82e9535d5ee5898966e5a2b3d7e2754d145
üst a676bb57
......@@ -106,11 +106,11 @@ enum AreaOverlapType
OneColumnInsideArea
};
enum ListenerGroupType
enum class ListenerGroupType
{
ListenerSingle,
ListenerGroup,
ListenerBoth
Single,
Group,
Both
};
enum StartListeningType
......
......@@ -528,15 +528,15 @@ void ScBroadcastAreaSlot::GetAllListeners(
const ScRange& rAreaRange = pArea->GetRange();
switch (eGroup)
{
case sc::ListenerSingle:
case sc::ListenerGroupType::Single:
if (pArea->IsGroupListening())
continue;
break;
case sc::ListenerGroup:
case sc::ListenerGroupType::Group:
if (!pArea->IsGroupListening())
continue;
break;
case sc::ListenerBoth:
case sc::ListenerGroupType::Both:
default:
;
}
......
......@@ -1207,7 +1207,7 @@ void ScTable::SortReorderByRowRefUpdate(
ScBroadcastAreaSlotMachine* pBASM = pDocument->GetBASM();
std::vector<sc::AreaListener> aGrpListeners =
pBASM->GetAllListeners(
aMoveRange, sc::AreaInsideOrOverlap, sc::ListenerGroup);
aMoveRange, sc::AreaInsideOrOverlap, sc::ListenerGroupType::Group);
{
std::vector<sc::AreaListener>::iterator it = aGrpListeners.begin(), itEnd = aGrpListeners.end();
......
......@@ -340,7 +340,7 @@ public:
std::vector<sc::AreaListener> GetAllListeners(
const ScRange& rRange, sc::AreaOverlapType eType,
sc::ListenerGroupType eGroup = sc::ListenerBoth );
sc::ListenerGroupType eGroup = sc::ListenerGroupType::Both );
#if DEBUG_AREA_BROADCASTER
void Dump() 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