summaryrefslogtreecommitdiff
path: root/ui/gridView.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:05:53 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:05:53 +0200
commit618dfb51d93898632830f1b87443d3f748780871 (patch)
treebac520a2e261154f8d35b0cb8aa345f5ab373811 /ui/gridView.h
parent3.4 (diff)
downloadFreeFileSync-618dfb51d93898632830f1b87443d3f748780871.tar.gz
FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.tar.bz2
FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.zip
3.5
Diffstat (limited to 'ui/gridView.h')
-rw-r--r--ui/gridView.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/gridView.h b/ui/gridView.h
index 8cd21915..5310eb7e 100644
--- a/ui/gridView.h
+++ b/ui/gridView.h
@@ -17,13 +17,13 @@ class GridView
{
public:
//direct data access via row number
- const FileSystemObject* getObject(unsigned int row) const; //returns NULL if object is not found; logarithmic complexity
- FileSystemObject* getObject(unsigned int row); //
+ const FileSystemObject* getObject(size_t row) const; //returns NULL if object is not found; logarithmic complexity
+ FileSystemObject* getObject(size_t row); //
size_t rowsOnView() const; //only the currently visible elements
size_t rowsTotal() const; //total number of rows available
//get references to FileSystemObject: no NULL-check needed! Everything's bound.
- void getAllFileRef(const std::set<unsigned int>& guiRows, std::vector<FileSystemObject*>& output);
+ void getAllFileRef(const std::set<size_t>& guiRows, std::vector<FileSystemObject*>& output);
struct StatusCmpResult
{
@@ -180,7 +180,7 @@ private:
//inline implementation
inline
-const FileSystemObject* GridView::getObject(unsigned int row) const
+const FileSystemObject* GridView::getObject(size_t row) const
{
if (row < rowsOnView())
return getReferencedRow(viewRef[row]);
@@ -189,7 +189,7 @@ const FileSystemObject* GridView::getObject(unsigned int row) const
}
inline
-FileSystemObject* GridView::getObject(unsigned int row)
+FileSystemObject* GridView::getObject(size_t row)
{
//code re-use of const method: see Meyers Effective C++
return const_cast<FileSystemObject*>(static_cast<const GridView&>(*this).getObject(row));
bgstack15