From 6f3ad852a3f58dff7bf2fd34788f4b41c3973f02 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Wed, 5 Nov 2014 16:16:16 +0100 Subject: [PATCH] CodyCam: Fix gcc4 build. --- src/apps/codycam/CodyCam.cpp | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/apps/codycam/CodyCam.cpp b/src/apps/codycam/CodyCam.cpp index 214f93bb0b..895eca25a1 100644 --- a/src/apps/codycam/CodyCam.cpp +++ b/src/apps/codycam/CodyCam.cpp @@ -55,17 +55,6 @@ const int32 kSliderViewRectHeight = 40; namespace { -void -VideoWindow::ErrorAlert(const char* message, status_t err) -{ - Lock(); - fVideoView->SetText(message); - Unlock(); - - printf("%s\n%s [%" B_PRIx32 "]", message, strerror(err), err); -} - - // functions for EnumeratedStringValueSettings const char* @@ -493,7 +482,6 @@ VideoWindow::VideoWindow(BRect frame, const char* title, window_type type, } - VideoWindow::~VideoWindow() { _QuitSettings(); @@ -684,7 +672,7 @@ VideoWindow::_BuildCaptureControls() m->AddInt32("client", i); fUploadClientMenu->AddItem(new BMenuItem(kUploadClients[i], m)); } - + fUploadClientMenu->SetTargetForItems(this); fUploadClientMenu->FindItem(fUploadClientSetting->Value())->SetMarked(true); fUploadClientSelector = new BMenuField("UploadClient", NULL, @@ -754,6 +742,17 @@ VideoWindow::ApplyControls() } +void +VideoWindow::ErrorAlert(const char* message, status_t err) +{ + Lock(); + fVideoView->SetText(message); + Unlock(); + + printf("%s\n%s [%" B_PRIx32 "]", message, strerror(err), err); +} + + void VideoWindow::_SetUpSettings(const char* filename, const char* dirname) {