* Style fixes pointed out by Axel.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37789 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2,8 +2,6 @@
|
|||||||
* Copyright 2003-2010, Haiku, Inc.
|
* Copyright 2003-2010, Haiku, Inc.
|
||||||
* Distributed under the terms of the MIT Licence.
|
* Distributed under the terms of the MIT Licence.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifndef _COLLATOR_H_
|
#ifndef _COLLATOR_H_
|
||||||
#define _COLLATOR_H_
|
#define _COLLATOR_H_
|
||||||
|
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ BCollator::GetSortKey(const char *string, BString *key, int8 strength)
|
|||||||
if (strength == B_COLLATE_DEFAULT)
|
if (strength == B_COLLATE_DEFAULT)
|
||||||
strength = fStrength;
|
strength = fStrength;
|
||||||
Collator::ECollationStrength icuStrength;
|
Collator::ECollationStrength icuStrength;
|
||||||
switch(strength) {
|
switch (strength) {
|
||||||
case B_COLLATE_PRIMARY:
|
case B_COLLATE_PRIMARY:
|
||||||
icuStrength = Collator::PRIMARY;
|
icuStrength = Collator::PRIMARY;
|
||||||
break;
|
break;
|
||||||
@@ -164,8 +164,7 @@ BCollator::GetSortKey(const char *string, BString *key, int8 strength)
|
|||||||
|
|
||||||
if (error == U_ZERO_ERROR)
|
if (error == U_ZERO_ERROR)
|
||||||
return B_OK;
|
return B_OK;
|
||||||
else
|
return B_ERROR;
|
||||||
return B_ERROR;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -176,7 +175,7 @@ BCollator::Compare(const char *a, const char *b, int32 length, int8 strength)
|
|||||||
if (strength == B_COLLATE_DEFAULT)
|
if (strength == B_COLLATE_DEFAULT)
|
||||||
strength = fStrength;
|
strength = fStrength;
|
||||||
Collator::ECollationStrength icuStrength;
|
Collator::ECollationStrength icuStrength;
|
||||||
switch(strength) {
|
switch (strength) {
|
||||||
case B_COLLATE_PRIMARY:
|
case B_COLLATE_PRIMARY:
|
||||||
icuStrength = Collator::PRIMARY;
|
icuStrength = Collator::PRIMARY;
|
||||||
break;
|
break;
|
||||||
@@ -228,8 +227,7 @@ BCollator::Archive(BMessage *archive, bool deep) const
|
|||||||
|
|
||||||
if (error == U_ZERO_ERROR)
|
if (error == U_ZERO_ERROR)
|
||||||
return status;
|
return status;
|
||||||
else
|
return B_ERROR;
|
||||||
return B_ERROR;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user