From 1b6bc2675fe3691538c8764ab016593f3b06ca53 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Wed, 8 Feb 2012 16:42:41 -0600 Subject: [PATCH] kits: Some spelling cleanup of common mistyped words * Little whitespace cleanup * No functional change --- src/kits/app/Application.cpp | 2 +- src/kits/app/Messenger.cpp | 4 ++-- src/kits/game/GameSoundDevice.cpp | 14 +++++++------- src/kits/interface/TextView.cpp | 2 +- src/kits/mail/HaikuMailFormatFilter.cpp | 2 +- src/kits/media/Notifications.cpp | 2 +- src/kits/media/OldBufferStreamManager.h | 2 +- src/kits/shared/DragTrackingFilter.cpp | 6 +++--- src/kits/shared/IconButton.cpp | 4 ++-- src/kits/support/Archivable.cpp | 2 +- 10 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/kits/app/Application.cpp b/src/kits/app/Application.cpp index 41e789c234..e28f48942d 100644 --- a/src/kits/app/Application.cpp +++ b/src/kits/app/Application.cpp @@ -402,7 +402,7 @@ BApplication::_InitData(const char *signature, bool initGUI, status_t *_error) // TODO: When BLooper::AddMessage() is done, use that instead of // PostMessage(). - DBG(OUT("info: BApplication sucessfully registered.\n")); + DBG(OUT("info: BApplication successfully registered.\n")); if (__libc_argc > 1) { BMessage argvMessage(B_ARGV_RECEIVED); diff --git a/src/kits/app/Messenger.cpp b/src/kits/app/Messenger.cpp index 4fcb9c2234..230136fa49 100644 --- a/src/kits/app/Messenger.cpp +++ b/src/kits/app/Messenger.cpp @@ -203,7 +203,7 @@ BMessenger::Target(BLooper** _looper) const \see BLooper::Lock() for details. - \return \c true, if the looper could be locked sucessfully, \c false, if + \return \c true, if the looper could be locked successfully, \c false, if the messenger is not properly initialized, the target is remote, or the targeted looper is invalid. */ @@ -232,7 +232,7 @@ BMessenger::LockTarget() const \see BLooper::LockWithTimeout() for details. \return - - \c B_OK, if the looper could be locked sucessfully, + - \c B_OK, if the looper could be locked successfully, - \c B_BAD_VALUE, if the messenger is not properly initialized, the target is remote, or the targeted looper is invalid, - other error codes returned by BLooper::LockWithTimeout(). diff --git a/src/kits/game/GameSoundDevice.cpp b/src/kits/game/GameSoundDevice.cpp index 2a4eed1014..d0f7d0d0ad 100644 --- a/src/kits/game/GameSoundDevice.cpp +++ b/src/kits/game/GameSoundDevice.cpp @@ -137,7 +137,7 @@ BGameSoundDevice::SetInitError(status_t error) status_t -BGameSoundDevice::CreateBuffer(gs_id* sound, const gs_audio_format* format, +BGameSoundDevice::CreateBuffer(gs_id* sound, const gs_audio_format* format, const void* data, int64 frames) { if (frames <= 0 || !sound) @@ -160,7 +160,7 @@ BGameSoundDevice::CreateBuffer(gs_id* sound, const gs_audio_format* format, status_t -BGameSoundDevice::CreateBuffer(gs_id* sound, const void* object, +BGameSoundDevice::CreateBuffer(gs_id* sound, const void* object, const gs_audio_format* format, size_t inBufferFrameCount, size_t inBufferCount) { @@ -179,7 +179,7 @@ BGameSoundDevice::CreateBuffer(gs_id* sound, const void* object, } if (err == B_OK) - *sound = gs_id(position+1); + *sound = gs_id(position + 1); return err; } @@ -192,7 +192,7 @@ BGameSoundDevice::ReleaseBuffer(gs_id sound) if (fSounds[sound - 1]) { // We must stop playback befor destroying the sound or else - // we may recieve fatel errors. + // we may receive fatel errors. fSounds[sound - 1]->StopPlaying(); delete fSounds[sound - 1]; @@ -207,10 +207,10 @@ BGameSoundDevice::Buffer(gs_id sound, gs_audio_format* format, void*& data) if (!format || sound <= 0) return B_BAD_VALUE; - memcpy(format, &fSounds[sound-1]->Format(), sizeof(gs_audio_format)); - if (fSounds[sound-1]->Data()) { + memcpy(format, &fSounds[sound - 1]->Format(), sizeof(gs_audio_format)); + if (fSounds[sound - 1]->Data()) { data = malloc(format->buffer_size); - memcpy(data, fSounds[sound-1]->Data(), format->buffer_size); + memcpy(data, fSounds[sound - 1]->Data(), format->buffer_size); } else data = NULL; diff --git a/src/kits/interface/TextView.cpp b/src/kits/interface/TextView.cpp index ab2e2cee59..2ed32c4e1e 100644 --- a/src/kits/interface/TextView.cpp +++ b/src/kits/interface/TextView.cpp @@ -858,7 +858,7 @@ BTextView::FrameResized(float width, float height) /*! \brief Highlight/unhighlight the selection when the view gets - or looses the focus. + or loses the focus. \param focusState The focus state: true, if the view is getting the focus, false otherwise. */ diff --git a/src/kits/mail/HaikuMailFormatFilter.cpp b/src/kits/mail/HaikuMailFormatFilter.cpp index b65f861c22..d77c8897d6 100644 --- a/src/kits/mail/HaikuMailFormatFilter.cpp +++ b/src/kits/mail/HaikuMailFormatFilter.cpp @@ -35,7 +35,7 @@ static const mail_header_field gDefaultFields[] = { { "Reply-To", B_MAIL_ATTR_REPLY, B_STRING_TYPE }, { "Subject", B_MAIL_ATTR_SUBJECT, B_STRING_TYPE }, { "X-Priority", B_MAIL_ATTR_PRIORITY, B_STRING_TYPE }, - // Priorities with prefered + // Priorities with preferred { "Priority", B_MAIL_ATTR_PRIORITY, B_STRING_TYPE }, // one first - the numeric { "X-Msmail-Priority", B_MAIL_ATTR_PRIORITY, B_STRING_TYPE }, diff --git a/src/kits/media/Notifications.cpp b/src/kits/media/Notifications.cpp index 1ab1bfaa6e..d8c78e3bd2 100644 --- a/src/kits/media/Notifications.cpp +++ b/src/kits/media/Notifications.cpp @@ -83,7 +83,7 @@ Unregister(const BMessenger& notifyHandler, const media_node& node, } -/*! Transmits the error code specified by \a what to anyone who's receiving +/*! Transmits the error code specified by \a what to anyone whose receiving notifications from this node. If \a info isn't \c NULL, it's used as a model message for the error notification message. The message field "be:node_id" will contain the node ID. diff --git a/src/kits/media/OldBufferStreamManager.h b/src/kits/media/OldBufferStreamManager.h index cbc0a3bf2c..b4a095ac8d 100644 --- a/src/kits/media/OldBufferStreamManager.h +++ b/src/kits/media/OldBufferStreamManager.h @@ -57,7 +57,7 @@ public: /* Get or set the minimum delay between sending out successive buffers. * Although the StreamManager automatically shuts down when there - * are no more subscribers, setting the minumum delay can prevent + * are no more subscribers, setting the minimum delay can prevent * prevent runaway streams. A zero or negative value means no * delay. */ diff --git a/src/kits/shared/DragTrackingFilter.cpp b/src/kits/shared/DragTrackingFilter.cpp index 9c4b0dd8ed..913d5d76f4 100644 --- a/src/kits/shared/DragTrackingFilter.cpp +++ b/src/kits/shared/DragTrackingFilter.cpp @@ -6,11 +6,11 @@ /*! \class DragTrackingFilter \brief A simple mouse drag detection filter - * + * * A simple mouse filter that detects the start of a mouse drag over a * threshold distance and sends a message with the 'what' field of your - * choice. Especially usefull for drag and drop. - * Allows you to free your code of encumbering mouse tracking details. + * choice. Especially useful for drag and drop. + * Allows you to free your code of encumbering mouse tracking details. * * It can detect fast drags spanning outside of a small view by temporarily * setting the B_POINTER_EVENTS flag on the view. diff --git a/src/kits/shared/IconButton.cpp b/src/kits/shared/IconButton.cpp index 243f94b55b..5881fd5bd5 100644 --- a/src/kits/shared/IconButton.cpp +++ b/src/kits/shared/IconButton.cpp @@ -444,7 +444,7 @@ BIconButton::SetIcon(const unsigned char* bitsFromQuickRes, if (status >= B_OK) { // It doesn't look right to copy BitsLength() bytes, but bitmaps // exported from QuickRes still contain their padding, so it is - // alright. + // all right. memcpy(quickResBitmap->Bits(), bitsFromQuickRes, quickResBitmap->BitsLength()); if (format != B_RGB32 && format != B_RGBA32 @@ -454,7 +454,7 @@ BIconButton::SetIcon(const unsigned char* bitsFromQuickRes, quickResBitmap->Bounds(), B_RGB32, true); if (bitmap && bitmap->IsValid()) { BView* helper = new BView(bitmap->Bounds(), "helper", - B_FOLLOW_NONE, B_WILL_DRAW); + B_FOLLOW_NONE, B_WILL_DRAW); if (bitmap->Lock()) { bitmap->AddChild(helper); helper->SetHighColor(ui_color(B_PANEL_BACKGROUND_COLOR)); diff --git a/src/kits/support/Archivable.cpp b/src/kits/support/Archivable.cpp index a01af34aa0..2bcb5156b9 100644 --- a/src/kits/support/Archivable.cpp +++ b/src/kits/support/Archivable.cpp @@ -786,7 +786,7 @@ find_instantiation_func(BMessage* archive) } -// BArchivable binary compatability +// BArchivable binary compatibility #if __GNUC__ == 2