diff --git a/src/servers/registrar/Event.cpp b/src/servers/registrar/Event.cpp index 04b69dc420..1cb2d84dda 100644 --- a/src/servers/registrar/Event.cpp +++ b/src/servers/registrar/Event.cpp @@ -142,7 +142,7 @@ Event::IsAutoDelete() const return value is taken into consideration. To be precise the logical OR of IsAutoDelete() and the return value of Do() specifies whether the object shall be deleted. The reason for this handling is that there are - usally two kind of events: "one-shot" events and those that are reused + usually two kind of events: "one-shot" events and those that are reused periodically or from time to time. The first kind can simply be constructed with "auto delete" set to \c true and doesn't need to care about Do()'s return value. The second kind shall usually not be deleted, diff --git a/src/servers/registrar/EventQueue.cpp b/src/servers/registrar/EventQueue.cpp index cdb46b9064..403791c975 100644 --- a/src/servers/registrar/EventQueue.cpp +++ b/src/servers/registrar/EventQueue.cpp @@ -158,7 +158,7 @@ EventQueue::Die() \param event The event to be added. \return \c true, if the event has been added successfully, \c false, if - an error occured. + an error occurred. */ bool EventQueue::AddEvent(Event *event) @@ -218,7 +218,7 @@ EventQueue::ModifyEvent(Event *event, bigtime_t newTime) \param event The event to be added. \return \c true, if the event has been added successfully, \c false, if - an error occured. + an error occurred. */ bool EventQueue::_AddEvent(Event *event) diff --git a/src/servers/registrar/MessageDeliverer.cpp b/src/servers/registrar/MessageDeliverer.cpp index 4d092c9517..e193373121 100644 --- a/src/servers/registrar/MessageDeliverer.cpp +++ b/src/servers/registrar/MessageDeliverer.cpp @@ -465,7 +465,7 @@ struct MessageDeliverer::TargetPortMap : public map { For the user of the service only the MessageDeliverer::DeliverMessage() will be of interest. Some of them allow broadcasting a message to several - recepients. + recipients. The class maintains a TargetPort for each target port which was full at the time a message was to be delivered to it. A TargetPort has a queue of diff --git a/src/servers/registrar/MessageEvent.cpp b/src/servers/registrar/MessageEvent.cpp index 89b7f90241..7786a78f19 100644 --- a/src/servers/registrar/MessageEvent.cpp +++ b/src/servers/registrar/MessageEvent.cpp @@ -77,7 +77,7 @@ MessageEvent::MessageEvent(bigtime_t time, BHandler* handler, uint32 command) // constructor /*! \brief Creates a new MessageEvent with a target BHandler and a message. - The caller retains ownership of the supplied message. It can savely be + The caller retains ownership of the supplied message. It can safely be deleted after the constructor returns. \note The supplied BHandler must be valid the whole life time of the @@ -116,7 +116,7 @@ MessageEvent::MessageEvent(bigtime_t time, const BMessenger& messenger, // constructor /*! \brief Creates a new MessageEvent with a target BMessenger and a message. - The caller retains ownership of the supplied message. It can savely be + The caller retains ownership of the supplied message. It can safely be deleted after the constructor returns. \param time The time at which the message shall be sent. diff --git a/src/servers/registrar/MessagingService.cpp b/src/servers/registrar/MessagingService.cpp index bd8ba8544f..b324ccbc65 100644 --- a/src/servers/registrar/MessagingService.cpp +++ b/src/servers/registrar/MessagingService.cpp @@ -123,7 +123,7 @@ MessagingArea::PopCommand() = (messaging_command*)((char*)fHeader + fHeader->first_command); // remove it from the area - // (as long as the area is still locked, noone will overwrite the contents) + // (as long as the area is still locked, no one will overwrite the contents) if (--fHeader->command_count == 0) fHeader->first_command = fHeader->last_command = 0; else diff --git a/src/servers/registrar/RosterSettingsCharStream.cpp b/src/servers/registrar/RosterSettingsCharStream.cpp index 25c2e3596e..2c441ac7f2 100644 --- a/src/servers/registrar/RosterSettingsCharStream.cpp +++ b/src/servers/registrar/RosterSettingsCharStream.cpp @@ -55,7 +55,7 @@ RosterSettingsCharStream::~RosterSettingsCharStream() signatures, integers, or Recent{Doc,Folder,App}, this does not currently pose a problem. - Quotes are " or ' - - An unquoted string begins with any character execept whitespace + - An unquoted string begins with any character except whitespace or a quote and continues until a whitespace character, newline, or comment is encountered. Whitespace may be included in the unquoted string if each whitespace character is escaped with a @@ -265,7 +265,7 @@ RosterSettingsCharStream::GetString(char *result) // Read past any comments if (error == kComment) { - // Read to the end of the line. If a valid read still occured, + // Read to the end of the line. If a valid read still occurred, // leave the newline in the stream for next time. char ch; while (true) { diff --git a/src/servers/registrar/ShutdownProcess.cpp b/src/servers/registrar/ShutdownProcess.cpp index f4fee2b5bd..fadc960fa9 100644 --- a/src/servers/registrar/ShutdownProcess.cpp +++ b/src/servers/registrar/ShutdownProcess.cpp @@ -739,7 +739,7 @@ ShutdownProcess::Init(BMessage* request) if (!fInternalEvents) RETURN_ERROR(B_NO_MEMORY); - // create the event sempahore + // create the event semaphore fInternalEventSemaphore = create_sem(0, "shutdown events"); if (fInternalEventSemaphore < 0) RETURN_ERROR(fInternalEventSemaphore); diff --git a/src/servers/registrar/TRoster.cpp b/src/servers/registrar/TRoster.cpp index e09ea17b8d..f54888ec6a 100644 --- a/src/servers/registrar/TRoster.cpp +++ b/src/servers/registrar/TRoster.cpp @@ -1190,7 +1190,7 @@ TRoster::ClearRecentApps() /*! \brief Initializes the roster. Currently only adds the registrar to the roster. - The application must already be running, more precisly Run() must have + The application must already be running, more precisely Run() must have been called. \return @@ -1345,7 +1345,7 @@ TRoster::CheckSanity() } -/*! \brief Tells the roster whether a shutdown process is in progess at the +/*! \brief Tells the roster whether a shutdown process is in progress at the moment. After this method is called with \a shuttingDown == \c true, no more @@ -2010,7 +2010,7 @@ TRoster::_LoadRosterSettings(const char* path) } // Now we must sort our lists of documents and folders by the - // indicies we read for each entry (largest index first) + // indices we read for each entry (largest index first) fRecentDocuments.fEntryList.sort(larger_index); fRecentFolders.fEntryList.sort(larger_index); diff --git a/src/servers/registrar/Watcher.cpp b/src/servers/registrar/Watcher.cpp index be3ee49923..793bc1e590 100644 --- a/src/servers/registrar/Watcher.cpp +++ b/src/servers/registrar/Watcher.cpp @@ -84,7 +84,7 @@ Watcher::Target() const \param message The message to be sent. \return \c B_OK, if everything went fine, another error code, if an error - occured. + occurred. */ status_t Watcher::SendMessage(BMessage *message) diff --git a/src/servers/registrar/WatchingService.cpp b/src/servers/registrar/WatchingService.cpp index 6e0d1657e7..b386d65b7a 100644 --- a/src/servers/registrar/WatchingService.cpp +++ b/src/servers/registrar/WatchingService.cpp @@ -86,7 +86,7 @@ WatchingService::~WatchingService() // AddWatcher /*! \brief Registers a new watcher to the watching service. - The ownership of \a watcher is transfered to the watching service, that + The ownership of \a watcher is transferred to the watching service, that is the caller must not delete it after the method returns. If the service already contains a Watcher with the same target BMessenger @@ -133,7 +133,7 @@ WatchingService::AddWatcher(const BMessenger &target) /*! \brief Unregisters a watcher from the watching service and optionally deletes it. - If \a deleteWatcher is \c false, the ownership of \a watcher is transfered + If \a deleteWatcher is \c false, the ownership of \a watcher is transferred to the caller, otherwise it is deleted. \param watcher The watcher to be unregistered. @@ -162,7 +162,7 @@ WatchingService::RemoveWatcher(Watcher *watcher, bool deleteWatcher) The watcher is identified by its target BMessenger. If \a deleteWatcher is \c false, the ownership of the concerned watcher is - transfered to the caller, otherwise it is deleted. + transferred to the caller, otherwise it is deleted. \param target The target BMessenger identifying the watcher to be unregistered. diff --git a/src/servers/registrar/mime/MimeUpdateThread.cpp b/src/servers/registrar/mime/MimeUpdateThread.cpp index 733e8a9703..c1384c065e 100644 --- a/src/servers/registrar/mime/MimeUpdateThread.cpp +++ b/src/servers/registrar/mime/MimeUpdateThread.cpp @@ -41,7 +41,7 @@ namespace Mime { /*! \brief Creates a new MimeUpdateThread object. If \a replyee is non-NULL and construction succeeds, the MimeThreadObject - assumes resposibility for its deletion. + assumes responsibility for its deletion. Also, if \c non-NULL, \a replyee is expected to be a \c B_REG_MIME_UPDATE_MIME_INFO or a \c B_REG_MIME_CREATE_APP_META_MIME diff --git a/src/servers/registrar/mime/RegistrarThreadManager.cpp b/src/servers/registrar/mime/RegistrarThreadManager.cpp index 9ce7690a5e..1c2dd93ea7 100644 --- a/src/servers/registrar/mime/RegistrarThreadManager.cpp +++ b/src/servers/registrar/mime/RegistrarThreadManager.cpp @@ -69,7 +69,7 @@ RegistrarThreadManager::MessageReceived(BMessage* message) } // LaunchThread -/*! \brief Launches the given thread, passing responsiblity for it onto the +/*! \brief Launches the given thread, passing responsibility for it onto the RegistrarThreadManager object. \param thread Pointer to a newly allocated \c RegistrarThread object.