Skip to content

Conversation

ChrisThrasher
Copy link
Member

Description

This is a textbook use case for a std::optional return value. This operation might return a buffer or it might not. It depends on whether the inputs are valid.

@codecov
Copy link

codecov bot commented Oct 28, 2023

Codecov Report

Merging #2756 (6770e43) into master (0fcd1dd) will increase coverage by 0.01%.
The diff coverage is 84.61%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2756      +/-   ##
==========================================
+ Coverage   38.46%   38.47%   +0.01%     
==========================================
  Files         237      237              
  Lines       20799    20801       +2     
  Branches     5148     5152       +4     
==========================================
+ Hits         8000     8003       +3     
+ Misses      11843    11828      -15     
- Partials      956      970      +14     
Files Coverage Δ
include/SFML/Graphics/Image.hpp 100.00% <ø> (ø)
src/SFML/Graphics/Image.cpp 90.47% <100.00%> (ø)
src/SFML/Graphics/ImageLoader.cpp 47.05% <81.81%> (+0.34%) ⬆️

... and 7 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

@ChrisThrasher ChrisThrasher merged commit 5cf740f into master Oct 28, 2023
@ChrisThrasher ChrisThrasher deleted the image_output_param branch October 28, 2023 23:58
@kimci86
Copy link
Contributor

kimci86 commented Oct 29, 2023

It is now impossible to reuse or reserve vector memory upfront to save some memory allocations. No big deal I guess but I just wanted to point it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants