aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilippe Saint-Pierre <stpere@gmail.com>2012-07-23 08:21:43 -0400
committerPhilippe Saint-Pierre <stpere@gmail.com>2012-07-23 08:21:43 -0400
commit516cac7817d0b2f54e8b59acfff5cf803ef7d2ab (patch)
tree41170662322060ca4932c4367c4e58ae11d320b5
parent674ff0df2f2eb00cbc78b4384fcf5b148a2139ff (diff)
Tracker: Coding style violations fixes and typoshrev44385
No functional changes, thanks Axel!
-rw-r--r--src/kits/tracker/PoseView.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/kits/tracker/PoseView.cpp b/src/kits/tracker/PoseView.cpp
index 0a69b0eaf2..592c04b0d0 100644
--- a/src/kits/tracker/PoseView.cpp
+++ b/src/kits/tracker/PoseView.cpp
@@ -149,6 +149,24 @@ const BPoint kTransparentDragThreshold(256, 192);
// if larger in any direction
+struct attr_column_relation {
+ uint32 attrHash;
+ int32 fieldMask;
+};
+
+
+static struct attr_column_relation attributes[] = {
+ { AttrHashString(kAttrStatModified, B_TIME_TYPE),
+ B_STAT_MODIFICATION_TIME },
+ { AttrHashString(kAttrStatSize, B_OFF_T_TYPE),
+ B_STAT_SIZE },
+ { AttrHashString(kAttrStatCreated, B_TIME_TYPE),
+ B_STAT_CREATION_TIME },
+ { AttrHashString(kAttrStatMode, B_STRING_TYPE),
+ B_STAT_MODE }
+};
+
+
struct AddPosesResult {
~AddPosesResult();
void ReleaseModels();
@@ -5359,12 +5377,6 @@ BPoseView::EntryMoved(const BMessage *message)
}
-struct attrColumnRelation {
- uint32 attrHash;
- int32 fieldMask;
-};
-
-
bool
BPoseView::AttributeChanged(const BMessage *message)
{
@@ -5454,23 +5466,11 @@ BPoseView::AttributeChanged(const BMessage *message)
if (message->FindInt32("fields", &fields) != B_OK)
return true;
- static struct attrColumnRelation attributs[] = {
- { AttrHashString(kAttrStatModified, B_TIME_TYPE),
- B_STAT_MODIFICATION_TIME },
- { AttrHashString(kAttrStatSize, B_OFF_T_TYPE),
- B_STAT_SIZE },
- { AttrHashString(kAttrStatCreated, B_TIME_TYPE),
- B_STAT_CREATION_TIME },
- { AttrHashString(kAttrStatMode, B_STRING_TYPE),
- B_STAT_MODE }
- };
-
- for (int32 i = sizeof(attributs) / sizeof(attrColumnRelation);
+ for (int32 i = sizeof(attributes) / sizeof(attr_column_relation);
i--;) {
- if (attributs[i].attrHash == PrimarySort()
- || attributs[i].attrHash == SecondarySort()) {
-
- if (fields & attributs[i].fieldMask) {
+ if (attributes[i].attrHash == PrimarySort()
+ || attributes[i].attrHash == SecondarySort()) {
+ if ((fields & attributes[i].fieldMask) != 0) {
_CheckPoseSortOrder(fPoseList, pose, poseListIndex);
if (fFiltering && visible)
_CheckPoseSortOrder(fFilteredPoseList, pose, index);