Fixed some warnings, mostly wrong uses of the ASSERT macro.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19962 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-01-26 11:24:20 +00:00
parent ab28e0ff2c
commit dfd1fe13b8
4 changed files with 8 additions and 17 deletions
@@ -298,9 +298,8 @@ void MediaRoutingView::AttachedToWindow()
// attach to manager // attach to manager
ASSERT(manager); ASSERT(manager);
status_t err = add_observer(this, manager); add_observer(this, manager);
ASSERT(err == B_OK);
// add the context-menu shortcuts to the window // add the context-menu shortcuts to the window
_addShortcuts(); _addShortcuts();
+2 -5
View File
@@ -408,11 +408,8 @@ NodeManager::NodeManager(
Run(); Run();
// initialize connection to the media roster // initialize connection to the media roster
D_ROSTER(( D_ROSTER(("# roster->StartWatching(%p)\n", this));
"# roster->StartWatching(%p)\n", this)); roster->StartWatching(BMessenger(this));
status_t err = roster->StartWatching(
BMessenger(this));
ASSERT(err == B_OK);
} }
// -------------------------------------------------------- // // -------------------------------------------------------- //
@@ -51,7 +51,6 @@ ConnectionIO::ConnectionIO(
ASSERT(con); ASSERT(con);
ASSERT(manager); ASSERT(manager);
ASSERT(context); ASSERT(context);
status_t err;
if(!con->isValid()) { if(!con->isValid()) {
PRINT(( PRINT((
+4 -8
View File
@@ -105,17 +105,13 @@ RouteApp::RouteApp() :
routeWindow->Show(); routeWindow->Show();
} }
bool RouteApp::QuitRequested() {
bool
RouteApp::QuitRequested()
{
// [e.moon 20oct99] make sure the main window is dead before quitting // [e.moon 20oct99] make sure the main window is dead before quitting
// store window positions & other settings // store window positions & other settings
app_info ai;
status_t err = GetAppInfo(&ai);
ASSERT(err == B_OK);
BFile appFile(&ai.ref, B_READ_WRITE);
// write settings file // write settings file
_writeSettings(); _writeSettings();