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

fix self-assignment

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