Skip to content

Commit 7cfcf93

Browse files
author
Alex Ames
committed
Added const to priority accessor on DataSnapshotInternal.
There's no reason it needed to be mutable, it was just an oversight that it wasn't.
1 parent 6a94caf commit 7cfcf93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

database/src/desktop/data_snapshot_desktop.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Variant DataSnapshotInternal::GetValue() const {
123123
return result;
124124
}
125125

126-
Variant DataSnapshotInternal::GetPriority() {
126+
Variant DataSnapshotInternal::GetPriority() const {
127127
return GetVariantPriority(data_);
128128
}
129129

database/src/desktop/data_snapshot_desktop.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class DataSnapshotInternal {
8181
Variant GetValue() const;
8282

8383
// Get the priority of the data contained in this snapshot.
84-
Variant GetPriority();
84+
Variant GetPriority() const;
8585

8686
// Obtain a DatabaseReference to the source location for this snapshot.
8787
//

0 commit comments

Comments
 (0)