registrar ClipboardHandler: Style fixes.

This commit is contained in:
Adrien Destugues
2014-09-02 10:15:57 +02:00
parent 90520f9b43
commit b367d3a77c
+9 -3
View File
@@ -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.