Kaydet (Commit) d70ab997 authored tarafından David Tardon's avatar David Tardon

fix self-assignment

Change-Id: Id4c5ac26ac33ba87407127586fb1961b9fb24967
üst a59848c9
......@@ -34,6 +34,7 @@
#include <svtools/svtresid.hxx>
#include <svtools/svtools.hrc>
#include <limits>
#include <utility>
namespace {
#define TABBAR_DRAG_SCROLLOFF 5
......@@ -558,12 +559,9 @@ void TabBar::ImplGetColors( Color& rFaceColor, Color& rFaceTextColor,
// as the selected tabs should appear in 3D
if ( mnWinStyle & WB_3DTAB )
{
Color aTempColor = rFaceColor;
rFaceColor = rSelectColor;
rSelectColor = aTempColor;
aTempColor = rFaceTextColor;
rFaceTextColor = rSelectTextColor;
rSelectTextColor = rFaceTextColor;
using std::swap;
swap(rFaceColor, rSelectColor);
swap(rFaceTextColor, rSelectTextColor);
}
}
......
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