Skip to content

Commit

Permalink
Add a missing static specifier.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yata committed May 27, 2013
1 parent 04fd840 commit 79f43f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/grnxx/map/cursor_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ KeyRangeCursor<T> *KeyRangeCursor<T>::create(
GRNXX_ERROR() << "new grnxx::map::KeyRangeCursor<T> failed";
return nullptr;
}
query_ = query;
cursor->query_ = query;
if (!cursor->init(map, options)) {
return nullptr;
}
Expand Down
5 changes: 3 additions & 2 deletions lib/grnxx/map/cursor_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ class KeyRangeCursor : public KeyFilterCursor<T> {
KeyRangeCursor();
~KeyRangeCursor();

KeyRangeCursor *create(Map<T> *map, const MapCursorKeyRange<T> &query,
const MapCursorOptions &options);
static KeyRangeCursor *create(Map<T> *map,
const MapCursorKeyRange<T> &query,
const MapCursorOptions &options);

private:
MapCursorKeyRange<T> query_;
Expand Down

0 comments on commit 79f43f2

Please sign in to comment.