Skip to content

BasisImporter: Initialize state and default configuration for direct use - #96

Merged
mosra merged 1 commit into
mosra:masterfrom
Squareys:basis-direct-use
Apr 5, 2021
Merged

BasisImporter: Initialize state and default configuration for direct use#96
mosra merged 1 commit into
mosra:masterfrom
Squareys:basis-direct-use

Conversation

@Squareys

@Squareys Squareys commented Apr 5, 2021

Copy link
Copy Markdown
Contributor

@mosra As discussed via gitter!

The BasisImporter default constructor was not initializing its state, preventing direct use through

BasisImporter::initialize();
BasisImporter importer;

Best,
Jonathan

@mosra mosra left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Also, the CI is failing 😆

Comment on lines +141 to +143
BasisImporter::BasisImporter() {
/* Initializes codebook */
_state.reset(new State);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Suggested change
BasisImporter::BasisImporter() {
/* Initializes codebook */
_state.reset(new State);
BasisImporter::BasisImporter(): _state{Containers::InPlaceInit} {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Very fancy :D

Signed-off-by: Squareys <squareys@googlemail.com>
@codecov

codecov Bot commented Apr 5, 2021

Copy link
Copy Markdown

Codecov Report

Merging #96 (d1d27b0) into master (410e388) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #96      +/-   ##
==========================================
- Coverage   94.15%   94.12%   -0.03%     
==========================================
  Files          95       95              
  Lines        7062     7064       +2     
==========================================
  Hits         6649     6649              
- Misses        413      415       +2     
Impacted Files Coverage Δ
src/MagnumPlugins/BasisImporter/BasisImporter.cpp 88.97% <0.00%> (-1.43%) ⬇️

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 410e388...d1d27b0. Read the comment docs.

@mosra mosra added this to the 2020.0b milestone Apr 5, 2021
@mosra
mosra merged commit d1d27b0 into mosra:master Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants