Skip to content

Commit

Permalink
fix style errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikmuhs committed May 24, 2024
1 parent e804a8f commit 363bf2f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion keyvi/bin/keyvi_c/c_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ struct keyvi_match {

struct keyvi_match_iterator {
explicit keyvi_match_iterator(const MatchIterator::MatchIteratorPair&& obj)
: current_(std::move(obj.begin())), end_(std::move(obj.end())) {}
: current_(obj.begin()), end_(obj.end()) {}
MatchIterator current_;
MatchIterator end_;
};
Expand Down
2 changes: 1 addition & 1 deletion keyvi/include/keyvi/dictionary/match_iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class MatchIterator : public boost::iterator_facade<MatchIterator, match_t const
if (match_functor_) {
TRACE("Match Iterator: call increment()");

current_match_ = std::move(match_functor_());
current_match_ = match_functor_();

// if we get an empty match, release the functor
if (!current_match_) {
Expand Down
8 changes: 5 additions & 3 deletions keyvi/include/keyvi/dictionary/util/iterator_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
* Author: hendrik
*/

#ifndef ITERATOR_UTILS_H_
#define ITERATOR_UTILS_H_
#ifndef KEYVI_DICTIONARY_UTIL_ITERATOR_UTILS_H_
#define KEYVI_DICTIONARY_UTIL_ITERATOR_UTILS_H_

#include <utility>

namespace keyvi {
namespace dictionary {
Expand All @@ -46,4 +48,4 @@ iterator_pair<Iterator> make_iterator_pair(Iterator f, Iterator l) {
} /* namespace dictionary */
} /* namespace keyvi */

#endif /* ITERATOR_UTILS_H_ */
#endif /* KEYVI_DICTIONARY_UTIL_ITERATOR_UTILS_H_ */

0 comments on commit 363bf2f

Please sign in to comment.