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

Conversation

hendrikmuhs
Copy link
Contributor

cleanup parts from #115

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.005%) to 84.753% when pulling c8a6ac6 on hendrik-cliqz:api-cleanup into d7f8dbb on cliqz-oss:master.

@@ -70,7 +70,7 @@ final {
}

// temporary implementation
fsa::automata_t GetFsa() {
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.

I suggest have this getter without const qualifier, otherwise its possible to get the pointer from const Dictionary and modify the internal state from outside.

Copy link

Choose a reason for hiding this comment

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

or we can have a const qualifier, but with return type std::shared_ptr<const Automata> which assures read-only behavior

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmm, there is no internal state in Automata. So the only state would be the shared pointer itself. I will try it.

Copy link

Choose a reason for hiding this comment

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

@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 84.801% when pulling a644d72 on hendrik-cliqz:api-cleanup into d7f8dbb on cliqz-oss:master.

@hendrikmuhs hendrikmuhs changed the title Api cleanup Api cleanup + SetManifest for Merger Aug 23, 2016
@@ -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.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 84.801% when pulling 8d9fc19 on hendrik-cliqz:api-cleanup into d7f8dbb on cliqz-oss:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 84.796% when pulling 2d36257 on hendrik-cliqz:api-cleanup into d7f8dbb on cliqz-oss:master.

@ghost
Copy link

ghost commented Aug 23, 2016

LGTM!

@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 84.796% when pulling 2d36257 on hendrik-cliqz:api-cleanup into d7f8dbb on cliqz-oss:master.

@hendrikmuhs hendrikmuhs merged commit db4f49c into cliqz-oss:master Aug 23, 2016
hendrikmuhs added a commit to hendrikmuhs/keyvi that referenced this pull request Jan 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants