fix a compil issue (missing include and nullptr_t -> std::nullptr_t)

This commit is contained in:
jean-pierre charras 2024-02-25 16:26:05 +01:00
parent f7721f385a
commit 7789dfcfdc
1 changed files with 3 additions and 2 deletions

View File

@ -33,6 +33,7 @@
#include "sheet_synchronization_item.h" #include "sheet_synchronization_item.h"
#include <memory> #include <memory>
#include <cstddef>
#include <sch_sheet_pin.h> #include <sch_sheet_pin.h>
#include <sch_sheet.h> #include <sch_sheet.h>
#include <unordered_map> #include <unordered_map>
@ -129,8 +130,8 @@ void DIALOG_SYNC_SHEET_PINS::OnClose( wxCloseEvent& aEvent )
void DIALOG_SYNC_SHEET_PINS::EndPlaceItem( EDA_ITEM* aNewItem ) void DIALOG_SYNC_SHEET_PINS::EndPlaceItem( EDA_ITEM* aNewItem )
{ {
auto post_end_place_item = std::shared_ptr<nullptr_t>( nullptr, auto post_end_place_item = std::shared_ptr<std::nullptr_t>( nullptr,
[&]( nullptr_t ) [&]( std::nullptr_t )
{ {
m_placeItemKind = m_placeItemKind =
PlaceItemKind::UNDEFINED; PlaceItemKind::UNDEFINED;