Use QVector<int> for m_screenEdgeReserved istead of int array

for cosmetic reasons only; to get rid of the initialization for loop
This commit is contained in:
Arthur Arlt 2011-06-28 14:00:47 +02:00
parent cc43928a97
commit baf6de3a2f
2 changed files with 2 additions and 4 deletions

View file

@ -49,10 +49,8 @@ namespace KWin {
ScreenEdge::ScreenEdge()
: QObject(NULL)
, m_screenEdgeWindows(ELECTRIC_COUNT, None)
, m_screenEdgeReserved(ELECTRIC_COUNT, 0)
{
for (int i = 0; i < ELECTRIC_COUNT; ++i) {
m_screenEdgeReserved[i] = 0;
}
}
ScreenEdge::~ScreenEdge()

View file

@ -120,6 +120,7 @@ private:
void switchDesktop(ElectricBorder border, const QPoint& pos);
QVector< Window > m_screenEdgeWindows;
QVector< int > m_screenEdgeReserved; // Corners/edges used by something
ElectricBorder m_currentScreenEdge;
int m_screenEdgeLeft;
int m_screenEdgeRight;
@ -129,7 +130,6 @@ private:
Time m_screenEdgeTimeLast;
Time m_screenEdgeTimeLastTrigger;
QPoint m_screenEdgePushPoint;
int m_screenEdgeReserved[ELECTRIC_COUNT]; // Corners/edges used by something
};
}
#endif // KWIN_SCREENEDGE_H