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
ASSERT(manager);
status_t err = add_observer(this, manager);
ASSERT(err == B_OK);
add_observer(this, manager);
// add the context-menu shortcuts to the window
_addShortcuts();
+2 -5
View File
@@ -408,11 +408,8 @@ NodeManager::NodeManager(
Run();
// initialize connection to the media roster
D_ROSTER((
"# roster->StartWatching(%p)\n", this));
status_t err = roster->StartWatching(
BMessenger(this));
ASSERT(err == B_OK);
D_ROSTER(("# roster->StartWatching(%p)\n", this));
roster->StartWatching(BMessenger(this));
}
// -------------------------------------------------------- //
@@ -51,7 +51,6 @@ ConnectionIO::ConnectionIO(
ASSERT(con);
ASSERT(manager);
ASSERT(context);
status_t err;
if(!con->isValid()) {
PRINT((
+4 -8
View File
@@ -105,17 +105,13 @@ RouteApp::RouteApp() :
routeWindow->Show();
}
bool RouteApp::QuitRequested() {
bool
RouteApp::QuitRequested()
{
// [e.moon 20oct99] make sure the main window is dead before quitting
// 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
_writeSettings();