summaryrefslogtreecommitdiff
path: root/ui/grid_view.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:24:59 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:24:59 +0200
commita1c91f4695e208d5a8f80dc37b1818169b7829ff (patch)
tree52f5134376d17c99b6c9e53133a2eb5cf171377c /ui/grid_view.h
parent5.16 (diff)
downloadFreeFileSync-a1c91f4695e208d5a8f80dc37b1818169b7829ff.tar.gz
FreeFileSync-a1c91f4695e208d5a8f80dc37b1818169b7829ff.tar.bz2
FreeFileSync-a1c91f4695e208d5a8f80dc37b1818169b7829ff.zip
5.17
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