registrar ClipboardHandler: Style fixes.
This commit is contained in:
@@ -17,10 +17,12 @@
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
|
||||
using std::map;
|
||||
using std::string;
|
||||
using namespace BPrivate;
|
||||
|
||||
|
||||
/*!
|
||||
\class ClipboardHandler
|
||||
\brief Handles all clipboard related requests.
|
||||
@@ -28,6 +30,7 @@ using namespace BPrivate;
|
||||
|
||||
struct ClipboardHandler::ClipboardMap : map<string, Clipboard*> {};
|
||||
|
||||
|
||||
// constructor
|
||||
/*! \brief Creates and initializes a ClipboardHandler.
|
||||
*/
|
||||
@@ -37,6 +40,7 @@ ClipboardHandler::ClipboardHandler()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
// destructor
|
||||
/*! \brief Frees all resources associate with this object.
|
||||
*/
|
||||
@@ -44,10 +48,10 @@ ClipboardHandler::~ClipboardHandler()
|
||||
{
|
||||
for (ClipboardMap::iterator it = fClipboards->begin();
|
||||
it != fClipboards->end();
|
||||
++it) {
|
||||
++it)
|
||||
delete it->second;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// MessageReceived
|
||||
/*! \brief Overrides the super class version to handle the clipboard specific
|
||||
@@ -162,7 +166,8 @@ ClipboardHandler::MessageReceived(BMessage *message)
|
||||
int32 localCount;
|
||||
bool failIfChanged;
|
||||
if (message->FindInt32("count", &localCount) == B_OK
|
||||
&& message->FindBool("fail if changed", &failIfChanged) == B_OK
|
||||
&& message->FindBool("fail if changed", &failIfChanged)
|
||||
== B_OK
|
||||
&& failIfChanged
|
||||
&& localCount != clipboard->Count()) {
|
||||
// atomic support
|
||||
@@ -187,6 +192,7 @@ ClipboardHandler::MessageReceived(BMessage *message)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*! \brief Gets the clipboard with the specified name, or adds it, if not yet
|
||||
existent.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user