From 5ceb49c12d9988c1a02fe6f3437a22b605bd987e Mon Sep 17 00:00:00 2001 From: Fredrik Holmqvist Date: Mon, 31 Jan 2011 17:10:38 +0000 Subject: [PATCH] As pointed out by korli use the PostMessage function that takes a code directly. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40333 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/deskbar/BarView.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/apps/deskbar/BarView.cpp b/src/apps/deskbar/BarView.cpp index 70971c5b73..53dfeec047 100644 --- a/src/apps/deskbar/BarView.cpp +++ b/src/apps/deskbar/BarView.cpp @@ -442,10 +442,8 @@ TBarView::ChangeState(int32 state, bool vertical, bool left, bool top) // Send a message to the preferences window to let it know to enable // or disabled preference items - if (stateChanged || vertSwap) { - BMessage message(kStateChanged); - be_app->PostMessage(&message); - } + if (stateChanged || vertSwap) + be_app->PostMessage(kStateChanged); BRect screenFrame = (BScreen(Window())).Frame();