Replace wxScopedPtr with std::unique_ptr in the tests
Just use the standard class instead of the wx one, as they can be used in exactly the same way.
This commit is contained in:
parent
29a97bb52d
commit
363f0988cf
34 changed files with 185 additions and 152 deletions
|
|
@ -20,7 +20,8 @@
|
|||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/html/winpars.h"
|
||||
#include "wx/scopedptr.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
// Test that parsing invalid HTML simply fails but doesn't crash for example.
|
||||
TEST_CASE("wxHtmlParser::ParseInvalid", "[html][parser][error]")
|
||||
|
|
@ -45,7 +46,7 @@ TEST_CASE("wxHtmlCell::Detach", "[html][cell]")
|
|||
{
|
||||
wxMemoryDC dc;
|
||||
|
||||
wxScopedPtr<wxHtmlContainerCell> const top(new wxHtmlContainerCell(nullptr));
|
||||
std::unique_ptr<wxHtmlContainerCell> const top(new wxHtmlContainerCell(nullptr));
|
||||
wxHtmlContainerCell* const cont = new wxHtmlContainerCell(nullptr);
|
||||
wxHtmlCell* const cell1 = new wxHtmlWordCell("Hello", dc);
|
||||
wxHtmlCell* const cell2 = new wxHtmlColourCell(*wxRED);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue