* cleanup

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27871 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Karsten Heimrich
2008-10-05 00:48:54 +00:00
parent d881bedfc0
commit 17e0fc6b5a
+12 -12
View File
@@ -51,7 +51,7 @@ static property_info sHandlerPropInfo[] = {
{ {
"suites", // name "suites", // name
B_STRING_TYPE // type B_STRING_TYPE // type
} }
} }
}, },
{ // ctypes[1] { // ctypes[1]
@@ -338,10 +338,10 @@ BHandler::AddFilter(BMessageFilter *filter)
if (fLooper != NULL) if (fLooper != NULL)
filter->SetLooper(fLooper); filter->SetLooper(fLooper);
if (!fFilters) if (!fFilters)
fFilters = new BList; fFilters = new BList;
fFilters->AddItem(filter); fFilters->AddItem(filter);
} }
@@ -479,15 +479,15 @@ BHandler::GetSupportedSuites(BMessage *data)
PrintToStream() on both data and the contained BPropertyInfo): PrintToStream() on both data and the contained BPropertyInfo):
BMessage: what = (0x0, or 0) BMessage: what = (0x0, or 0)
entry suites, type='CSTR', c=1, size=21, data[0]: "suite/vnd.Be-handler" entry suites, type='CSTR', c=1, size=21, data[0]: "suite/vnd.Be-handler"
entry messages, type='SCTD', c=1, size= 0, entry messages, type='SCTD', c=1, size= 0,
property commands types specifiers property commands types specifiers
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
Suites PGET 1 Suites PGET 1
(RTSC,suites) (RTSC,suites)
(DTCS,messages) (DTCS,messages)
Messenger PGET GNSM 1 Messenger PGET GNSM 1
InternalName PGET RTSC 1 InternalName PGET RTSC 1
With a good deal of trial and error, I determined that the With a good deal of trial and error, I determined that the
@@ -692,12 +692,12 @@ ObserverList::_ValidateHandlers(uint32 what)
while (iterator != handlers.end()) { while (iterator != handlers.end()) {
BMessenger target(*iterator); BMessenger target(*iterator);
if (!target.IsValid()) { if (!target.IsValid()) {
iterator++; iterator++;
continue; continue;
} }
Add(target, what); Add(target, what);
iterator = handlers.erase(iterator); iterator = handlers.erase(iterator);
} }
} }