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