Style fixes, no functional changes.

This commit is contained in:
Adrien Destugues
2014-07-16 17:57:47 +02:00
parent 3528905be6
commit 92dd9f7360
2 changed files with 19 additions and 31 deletions
+1 -2
View File
@@ -854,8 +854,7 @@ void
BHttpRequest::_ParseHeaders() BHttpRequest::_ParseHeaders()
{ {
BString currentHeader; BString currentHeader;
while (_GetLine(currentHeader) != B_ERROR) while (_GetLine(currentHeader) != B_ERROR) {
{
// An empty line means the end of the header section // An empty line means the end of the header section
if (currentHeader.Length() == 0) { if (currentHeader.Length() == 0) {
fRequestStatus = kRequestHeadersReceived; fRequestStatus = kRequestHeadersReceived;
+18 -29
View File
@@ -50,10 +50,6 @@ All rights reserved.
#define kPropertyPath "Path" #define kPropertyPath "Path"
#ifndef _SCRIPTING_ONLY
#define _SCRIPTING_ONLY(x) x
#endif
// notes on PoseView scripting interface: // notes on PoseView scripting interface:
// Indices and entry_refs are used to specify poses; In the case of indices // Indices and entry_refs are used to specify poses; In the case of indices
// and previous/next specifiers the current PoseView sort order is used. // and previous/next specifiers the current PoseView sort order is used.
@@ -199,7 +195,7 @@ const property_info kPosesPropertyList[] = {
status_t status_t
BPoseView::GetSupportedSuites(BMessage* _SCRIPTING_ONLY(data)) BPoseView::GetSupportedSuites(BMessage* data)
{ {
data->AddString("suites", kPosesSuites); data->AddString("suites", kPosesSuites);
BPropertyInfo propertyInfo( BPropertyInfo propertyInfo(
@@ -211,7 +207,7 @@ BPoseView::GetSupportedSuites(BMessage* _SCRIPTING_ONLY(data))
bool bool
BPoseView::HandleScriptingMessage(BMessage* _SCRIPTING_ONLY(message)) BPoseView::HandleScriptingMessage(BMessage* message)
{ {
if (message->what != B_GET_PROPERTY if (message->what != B_GET_PROPERTY
&& message->what != B_SET_PROPERTY && message->what != B_SET_PROPERTY
@@ -276,9 +272,8 @@ BPoseView::HandleScriptingMessage(BMessage* _SCRIPTING_ONLY(message))
bool bool
BPoseView::ExecuteProperty(BMessage* _SCRIPTING_ONLY(specifier), BPoseView::ExecuteProperty(BMessage* specifier, int32 form,
int32 _SCRIPTING_ONLY(form), const char* _SCRIPTING_ONLY(property), const char* property, BMessage* reply)
BMessage* _SCRIPTING_ONLY(reply))
{ {
status_t result = B_OK; status_t result = B_OK;
bool handled = false; bool handled = false;
@@ -327,9 +322,8 @@ BPoseView::ExecuteProperty(BMessage* _SCRIPTING_ONLY(specifier),
bool bool
BPoseView::CreateProperty(BMessage* _SCRIPTING_ONLY(specifier), BMessage*, BPoseView::CreateProperty(BMessage* specifier, BMessage*, int32 form,
int32 _SCRIPTING_ONLY(form), const char* _SCRIPTING_ONLY(property), const char* property, BMessage* reply)
BMessage* _SCRIPTING_ONLY(reply))
{ {
status_t result = B_OK; status_t result = B_OK;
bool handled = false; bool handled = false;
@@ -384,9 +378,8 @@ BPoseView::CreateProperty(BMessage* _SCRIPTING_ONLY(specifier), BMessage*,
bool bool
BPoseView::DeleteProperty(BMessage* _SCRIPTING_ONLY(specifier), BPoseView::DeleteProperty(BMessage* specifier, int32 form,
int32 _SCRIPTING_ONLY(form), const char* _SCRIPTING_ONLY(property), const char* property, BMessage* reply)
BMessage* _SCRIPTING_ONLY(reply))
{ {
status_t result = B_OK; status_t result = B_OK;
bool handled = false; bool handled = false;
@@ -483,9 +476,8 @@ BPoseView::DeleteProperty(BMessage* _SCRIPTING_ONLY(specifier),
bool bool
BPoseView::CountProperty(BMessage*, int32, BPoseView::CountProperty(BMessage*, int32, const char* property,
const char* _SCRIPTING_ONLY(property), BMessage* reply)
BMessage* _SCRIPTING_ONLY(reply))
{ {
bool handled = false; bool handled = false;
//PRINT(("BPoseView::CountProperty, %s\n", property)); //PRINT(("BPoseView::CountProperty, %s\n", property));
@@ -504,9 +496,8 @@ BPoseView::CountProperty(BMessage*, int32,
bool bool
BPoseView::GetProperty(BMessage* _SCRIPTING_ONLY(specifier), BPoseView::GetProperty(BMessage* specifier, int32 form,
int32 _SCRIPTING_ONLY(form), const char* _SCRIPTING_ONLY(property), const char* property, BMessage* reply)
BMessage* _SCRIPTING_ONLY(reply))
{ {
// PRINT(("GetProperty %s\n", property)); // PRINT(("GetProperty %s\n", property));
bool handled = false; bool handled = false;
@@ -637,9 +628,8 @@ BPoseView::GetProperty(BMessage* _SCRIPTING_ONLY(specifier),
bool bool
BPoseView::SetProperty(BMessage* _SCRIPTING_ONLY(message), BMessage*, BPoseView::SetProperty(BMessage* message, BMessage*, int32 form,
int32 _SCRIPTING_ONLY(form), const char* _SCRIPTING_ONLY(property), const char* property, BMessage* reply)
BMessage* _SCRIPTING_ONLY(reply))
{ {
status_t result = B_OK; status_t result = B_OK;
bool handled = false; bool handled = false;
@@ -706,9 +696,8 @@ BPoseView::SetProperty(BMessage* _SCRIPTING_ONLY(message), BMessage*,
BHandler* BHandler*
BPoseView::ResolveSpecifier(BMessage* _SCRIPTING_ONLY(message), BPoseView::ResolveSpecifier(BMessage* message, int32 index,
int32 _SCRIPTING_ONLY(index), BMessage* _SCRIPTING_ONLY(specifier), BMessage* specifier, int32 form, const char* property)
int32 _SCRIPTING_ONLY(form), const char* _SCRIPTING_ONLY(property))
{ {
BPropertyInfo propertyInfo( BPropertyInfo propertyInfo(
const_cast<property_info*>(kPosesPropertyList)); const_cast<property_info*>(kPosesPropertyList));
@@ -726,8 +715,8 @@ BPoseView::ResolveSpecifier(BMessage* _SCRIPTING_ONLY(message),
BPose* BPose*
BPoseView::FindPose(const entry_ref* _SCRIPTING_ONLY(ref), BPoseView::FindPose(const entry_ref* ref, int32 specifierForm,
int32 _SCRIPTING_ONLY(specifierForm), int32* _SCRIPTING_ONLY(index)) const int32* index) const
{ {
// flavor of FindPose, used by previous/next specifiers // flavor of FindPose, used by previous/next specifiers