Tracker: Coding style violations fixes and typos
No functional changes, thanks Axel!
This commit is contained in:
parent
674ff0df2f
commit
516cac7817
@ -149,6 +149,24 @@ const BPoint kTransparentDragThreshold(256, 192);
|
|||||||
// if larger in any direction
|
// 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 {
|
struct AddPosesResult {
|
||||||
~AddPosesResult();
|
~AddPosesResult();
|
||||||
void ReleaseModels();
|
void ReleaseModels();
|
||||||
@ -5359,12 +5377,6 @@ BPoseView::EntryMoved(const BMessage *message)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
struct attrColumnRelation {
|
|
||||||
uint32 attrHash;
|
|
||||||
int32 fieldMask;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
BPoseView::AttributeChanged(const BMessage *message)
|
BPoseView::AttributeChanged(const BMessage *message)
|
||||||
{
|
{
|
||||||
@ -5454,23 +5466,11 @@ BPoseView::AttributeChanged(const BMessage *message)
|
|||||||
if (message->FindInt32("fields", &fields) != B_OK)
|
if (message->FindInt32("fields", &fields) != B_OK)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
static struct attrColumnRelation attributs[] = {
|
for (int32 i = sizeof(attributes) / sizeof(attr_column_relation);
|
||||||
{ 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);
|
|
||||||
i--;) {
|
i--;) {
|
||||||
if (attributs[i].attrHash == PrimarySort()
|
if (attributes[i].attrHash == PrimarySort()
|
||||||
|| attributs[i].attrHash == SecondarySort()) {
|
|| attributes[i].attrHash == SecondarySort()) {
|
||||||
|
if ((fields & attributes[i].fieldMask) != 0) {
|
||||||
if (fields & attributs[i].fieldMask) {
|
|
||||||
_CheckPoseSortOrder(fPoseList, pose, poseListIndex);
|
_CheckPoseSortOrder(fPoseList, pose, poseListIndex);
|
||||||
if (fFiltering && visible)
|
if (fFiltering && visible)
|
||||||
_CheckPoseSortOrder(fFilteredPoseList, pose, index);
|
_CheckPoseSortOrder(fFilteredPoseList, pose, index);
|
||||||
|
Loading…
Reference in New Issue
Block a user