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

const-correct kiwix::Library #499

Merged
merged 1 commit into from
Apr 28, 2021
Merged

const-correct kiwix::Library #499

merged 1 commit into from
Apr 28, 2021

Conversation

veloman-yunkan
Copy link
Collaborator

Fixes #487

  • Made most methods of kiwix::Library const.
  • Also added const versions of getBookById() and getBookByPath()
    methods.

Should we bump the libkiwix version because of this change?

- Made most methods of kiwix::Library const.
- Also added const versions of getBookById() and getBookByPath()
  methods.
@codecov
Copy link

codecov bot commented Apr 28, 2021

Codecov Report

Merging #499 (3879b82) into master (7336dca) will increase coverage by 0.05%.
The diff coverage is 71.42%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #499      +/-   ##
==========================================
+ Coverage   64.39%   64.45%   +0.05%     
==========================================
  Files          50       50              
  Lines        3556     3562       +6     
  Branches     1816     1816              
==========================================
+ Hits         2290     2296       +6     
  Misses       1264     1264              
  Partials        2        2              
Impacted Files Coverage Δ
include/library.h 91.66% <ø> (ø)
include/libxml_dumper.h 0.00% <ø> (ø)
src/libxml_dumper.cpp 0.00% <0.00%> (ø)
src/library.cpp 78.68% <75.00%> (+0.34%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7336dca...3879b82. Read the comment docs.

@mgautierfr
Copy link
Member

Should we bump the libkiwix version because of this change?

Yes, this is a ABI break and we don't have a separated versioning of ABI/API.

@kelson42
Copy link
Collaborator

Should we bump the libkiwix version because of this change?

Yes, this is a ABI break and we don't have a separated versioning of ABI/API.

OK, but we have already bumped to 10.0.0, so we are good?

@mgautierfr
Copy link
Member

Indeed. We can merge it.

@mgautierfr mgautierfr merged commit 32cc6b0 into master Apr 28, 2021
@mgautierfr mgautierfr deleted the const_correct_library branch April 28, 2021 12:31
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.

Shouldn't some of the methods of kiwix::Library be const?
3 participants