mirror of
https://github.com/team-charls/charls
synced 2025-03-28 21:03:13 +00:00
Make Checked build compatible with VS2019 16.7.0 Preview 3.1
The latest version of VS checks better if noexcept can be added to a constructor. Update the source for this improved checking.
This commit is contained in:
parent
18d80af996
commit
c884847eca
@ -108,6 +108,7 @@
|
||||
<RunCodeAnalysis Condition="'$(MSBuildProjectExtension)'=='.vcxproj'" >true</RunCodeAnalysis>
|
||||
<EnableCppCoreCheck>true</EnableCppCoreCheck>
|
||||
<EnableClangTidyCodeAnalysis>true</EnableClangTidyCodeAnalysis>
|
||||
<EnableMicrosoftCodeAnalysis>true</EnableMicrosoftCodeAnalysis>
|
||||
|
||||
</PropertyGroup>
|
||||
</Project>
|
@ -18,7 +18,7 @@ namespace charls {
|
||||
class DecoderStrategy
|
||||
{
|
||||
public:
|
||||
explicit DecoderStrategy(const frame_info& frame, const coding_parameters& parameters) :
|
||||
explicit DecoderStrategy(const frame_info& frame, const coding_parameters& parameters) noexcept :
|
||||
frame_info_{frame},
|
||||
parameters_{parameters}
|
||||
{
|
||||
|
@ -12,7 +12,7 @@ namespace charls {
|
||||
class EncoderStrategy
|
||||
{
|
||||
public:
|
||||
explicit EncoderStrategy(const frame_info& frame, const coding_parameters& parameters) :
|
||||
explicit EncoderStrategy(const frame_info& frame, const coding_parameters& parameters) noexcept :
|
||||
frame_info_{frame},
|
||||
parameters_{parameters}
|
||||
{
|
||||
|
@ -110,7 +110,7 @@ public:
|
||||
using PIXEL = typename Traits::PIXEL;
|
||||
using SAMPLE = typename Traits::SAMPLE;
|
||||
|
||||
JlsCodec(Traits inTraits, const frame_info& frame_info, const coding_parameters& parameters) :
|
||||
JlsCodec(Traits inTraits, const frame_info& frame_info, const coding_parameters& parameters) noexcept :
|
||||
Strategy{update_component_count(frame_info, parameters), parameters},
|
||||
traits{std::move(inTraits)},
|
||||
width_{frame_info.width}
|
||||
|
@ -11,7 +11,7 @@ namespace test {
|
||||
class EncoderStrategyTester final : charls::EncoderStrategy
|
||||
{
|
||||
public:
|
||||
explicit EncoderStrategyTester(const charls::frame_info& frame_info, const charls::coding_parameters& parameters) :
|
||||
explicit EncoderStrategyTester(const charls::frame_info& frame_info, const charls::coding_parameters& parameters) noexcept :
|
||||
EncoderStrategy(frame_info, parameters)
|
||||
{
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user