Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
Const-qualified view_t members where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
trueqbit committed Feb 15, 2023
1 parent 7ca5200 commit 30d9824
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dev/view.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ namespace sqlite_orm {
view_t(storage_type& stor, decltype(connection) conn, Args&&... args_) :
storage(stor), connection(std::move(conn)), args{std::make_tuple(std::forward<Args>(args_)...)} {}

size_t size() {
size_t size() const {
return this->storage.template count<T>();
}

bool empty() {
bool empty() const {
return !this->size();
}

Expand Down
4 changes: 2 additions & 2 deletions include/sqlite_orm/sqlite_orm.h
Original file line number Diff line number Diff line change
Expand Up @@ -13055,11 +13055,11 @@ namespace sqlite_orm {
view_t(storage_type& stor, decltype(connection) conn, Args&&... args_) :
storage(stor), connection(std::move(conn)), args{std::make_tuple(std::forward<Args>(args_)...)} {}

size_t size() {
size_t size() const {
return this->storage.template count<T>();
}

bool empty() {
bool empty() const {
return !this->size();
}

Expand Down

0 comments on commit 30d9824

Please sign in to comment.