summaryrefslogtreecommitdiff
path: root/ui/grid_view.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/grid_view.h')
-rw-r--r--ui/grid_view.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/grid_view.h b/ui/grid_view.h
index 15f248a3..0cef5dea 100644
--- a/ui/grid_view.h
+++ b/ui/grid_view.h
@@ -114,7 +114,7 @@ public:
const SortInfo* getSortInfo() const { return currentSort.get(); } //return nullptr if currently not sorted
ptrdiff_t findRowDirect(FileSystemObject::ObjectIdConst objId) const; // find an object's row position on view list directly, return < 0 if not found
- ptrdiff_t findRowFirstChild(const HierarchyObject* hierObj) const; // find first child of DirMapping or BaseDirMapping *on sorted sub view*
+ ptrdiff_t findRowFirstChild(const HierarchyObject* hierObj) const; // find first child of DirPair or BaseDirPair *on sorted sub view*
//"hierObj" may be invalid, it is NOT dereferenced, return < 0 if not found
size_t getFolderPairCount() const { return folderPairCount; } //count non-empty pairs to distinguish single/multiple folder pair cases
@@ -123,9 +123,9 @@ private:
struct RefIndex
{
RefIndex(size_t folderInd, FileSystemObject::ObjectId id) :
- folderIndex(static_cast<unsigned int>(folderInd)),
+ folderIndex(folderInd),
objId(id) {}
- unsigned int folderIndex;
+ size_t folderIndex; //because of alignment there's no benefit in using "unsigned int" in 64-bit code here!
FileSystemObject::ObjectId objId;
};
bgstack15