summaryrefslogtreecommitdiffstats
path: root/src/datavis3d/data/qmapdataproxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/datavis3d/data/qmapdataproxy.h')
-rw-r--r--src/datavis3d/data/qmapdataproxy.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/datavis3d/data/qmapdataproxy.h b/src/datavis3d/data/qmapdataproxy.h
index b87b6120..8c224b86 100644
--- a/src/datavis3d/data/qmapdataproxy.h
+++ b/src/datavis3d/data/qmapdataproxy.h
@@ -65,8 +65,10 @@ public:
// requires allocating additional data object for the bar.
// If data is accessed from same thread that sets it, access doesn't need to be protected with mutex.
+ // Item pointers are guaranteed to be valid only until next call that modifies data.
+ // Array pointer is guaranteed to be valid for lifetime of proxy.
int itemCount();
- const QMapDataArray &array() const;
+ const QMapDataArray *array() const;
const QMapDataItem *itemAt(int index) const; // Index needs to exist or this crashes
// All array/item manipulation functions are internally protected by data mutex.