Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Api cleanup + SetManifest for Merger #118

Merged
merged 10 commits into from
Aug 23, 2016
3 changes: 1 addition & 2 deletions keyvi/src/cpp/dictionary/dictionary.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ final {
: fsa_(f) {
}

// temporary implementation
fsa::automata_t GetFsa() const {
const fsa::automata_t GetFsa() const {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first const is not needed, anyway the return value is a temporary object.

return fsa_;
}

Expand Down
2 changes: 1 addition & 1 deletion keyvi/src/cpp/dictionary/fsa/automata.h
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ final {
};

// shared pointer
typedef std::shared_ptr<Automata> automata_t;
typedef std::shared_ptr<const Automata> automata_t;

} /* namespace fsa */
} /* namespace dictionary */
Expand Down