Swap it instead of assigning it (reduces copying)

This commit is contained in:
zack%kde.org 2004-12-02 22:45:11 +00:00
parent 56c78a743c
commit af5093ee39

View File

@ -308,7 +308,7 @@ NS_IMETHODIMP nsRenderingContextQt::PopState()
delete mTranMatrix;
mTranMatrix = state->mMatrix;
}
mClipRegion = state->mClipRegion;
mClipRegion.swap(state->mClipRegion);
if (state->mColor != mCurrentColor)
SetColor(state->mColor);