fix(pe_lib): changed language standard to stdcpp20, add some fixes in pe_bliss library
This commit is contained in:
@@ -65,7 +65,7 @@
|
|||||||
<ConformanceMode>true</ConformanceMode>
|
<ConformanceMode>true</ConformanceMode>
|
||||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
<LanguageStandard>stdcpp14</LanguageStandard>
|
<LanguageStandard>stdcpp20</LanguageStandard>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Console</SubSystem>
|
<SubSystem>Console</SubSystem>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace pe_bliss
|
|||||||
class pe_properties
|
class pe_properties
|
||||||
{
|
{
|
||||||
public: //Constructors
|
public: //Constructors
|
||||||
virtual std::auto_ptr<pe_properties> duplicate() const = 0;
|
virtual std::unique_ptr<pe_properties> duplicate() const = 0;
|
||||||
|
|
||||||
//Fills properly PE structures
|
//Fills properly PE structures
|
||||||
virtual void create_pe(uint32_t section_alignment, uint16_t subsystem) = 0;
|
virtual void create_pe(uint32_t section_alignment, uint16_t subsystem) = 0;
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ using namespace pe_win;
|
|||||||
|
|
||||||
//Constructor
|
//Constructor
|
||||||
template<typename PEClassType>
|
template<typename PEClassType>
|
||||||
std::auto_ptr<pe_properties> pe_properties_generic<PEClassType>::duplicate() const
|
std::unique_ptr<pe_properties> pe_properties_generic<PEClassType>::duplicate() const
|
||||||
{
|
{
|
||||||
return std::auto_ptr<pe_properties>(new pe_properties_generic<PEClassType>(*this));
|
return std::unique_ptr<pe_properties>(new pe_properties_generic<PEClassType>(*this));
|
||||||
}
|
}
|
||||||
|
|
||||||
//Fills properly PE structures
|
//Fills properly PE structures
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ template<typename PEClassType>
|
|||||||
class pe_properties_generic : public pe_properties
|
class pe_properties_generic : public pe_properties
|
||||||
{
|
{
|
||||||
public: //Constructor
|
public: //Constructor
|
||||||
virtual std::auto_ptr<pe_properties> duplicate() const;
|
virtual std::unique_ptr<pe_properties> duplicate() const;
|
||||||
|
|
||||||
//Fills properly PE structures
|
//Fills properly PE structures
|
||||||
virtual void create_pe(uint32_t section_alignment, uint16_t subsystem);
|
virtual void create_pe(uint32_t section_alignment, uint16_t subsystem);
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ void resource_cursor_icon_writer::add_icon(const std::string& icon_file, const s
|
|||||||
{
|
{
|
||||||
resource_directory_entry new_icon_group_entry;
|
resource_directory_entry new_icon_group_entry;
|
||||||
new_icon_group_entry.set_name(icon_group_name);
|
new_icon_group_entry.set_name(icon_group_name);
|
||||||
std::auto_ptr<resource_data_info> data_info;
|
std::unique_ptr<resource_data_info> data_info;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -288,7 +288,7 @@ void resource_cursor_icon_writer::add_icon(const std::string& icon_file, uint32_
|
|||||||
{
|
{
|
||||||
resource_directory_entry new_icon_group_entry;
|
resource_directory_entry new_icon_group_entry;
|
||||||
new_icon_group_entry.set_id(icon_group_id);
|
new_icon_group_entry.set_id(icon_group_id);
|
||||||
std::auto_ptr<resource_data_info> data_info;
|
std::unique_ptr<resource_data_info> data_info;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -310,7 +310,7 @@ void resource_cursor_icon_writer::add_cursor(const std::string& cursor_file, con
|
|||||||
{
|
{
|
||||||
resource_directory_entry new_cursor_group_entry;
|
resource_directory_entry new_cursor_group_entry;
|
||||||
new_cursor_group_entry.set_name(cursor_group_name);
|
new_cursor_group_entry.set_name(cursor_group_name);
|
||||||
std::auto_ptr<resource_data_info> data_info;
|
std::unique_ptr<resource_data_info> data_info;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -327,7 +327,7 @@ void resource_cursor_icon_writer::add_cursor(const std::string& cursor_file, uin
|
|||||||
{
|
{
|
||||||
resource_directory_entry new_cursor_group_entry;
|
resource_directory_entry new_cursor_group_entry;
|
||||||
new_cursor_group_entry.set_id(cursor_group_id);
|
new_cursor_group_entry.set_id(cursor_group_id);
|
||||||
std::auto_ptr<resource_data_info> data_info;
|
std::unique_ptr<resource_data_info> data_info;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user