Skip to content

Commit

Permalink
Merge branch 'v0.1.0-beta' of https://github.com/gammasoft71/xtd into…
Browse files Browse the repository at this point in the history
… v0.1.0-beta
  • Loading branch information
gammasoft71 committed Jul 17, 2023
2 parents 1d13288 + 56aa0ee commit cbc4ba7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/xtd.core.native.win32/src/xtd/native/win32/console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace {

int32_t backColor = __background_color();
int32_t foreColor = __foreground_color();
bool treat_control_c_as_input = [&]()-> bool {
bool treat_control_c_as_input = []()-> bool {
SetConsoleCtrlHandler(&__handler_routine, TRUE);
return false;
}();
Expand Down
2 changes: 1 addition & 1 deletion src/xtd.core/src/xtd/internal/__opaque_console_win32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace {

xtd::console_color backColor = __background_color();
xtd::console_color foreColor = __foreground_color();
bool treat_control_c_as_input = [&]()-> bool {
bool treat_control_c_as_input = []()-> bool {
SetConsoleCtrlHandler(&__handler_routine, TRUE);
return false;
}();
Expand Down
8 changes: 4 additions & 4 deletions src/xtd.tunit/include/xtd/tunit/assert.h
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ namespace xtd {
}

static void contains(char8_t item, const char8_t* values, const xtd::ustring& message, const xtd::diagnostics::stack_frame& stack_frame) {
ustring s(values);
std::u8string s(values);
auto result = std::find(s.begin(), s.end(), item);
if (result != s.end())
succeed(message, stack_frame);
Expand All @@ -670,7 +670,7 @@ namespace xtd {
}

static void contains(char16_t item, const char16_t* values, const xtd::ustring& message, const xtd::diagnostics::stack_frame& stack_frame) {
ustring s(values);
std::u16string s(values);
auto result = std::find(s.begin(), s.end(), item);
if (result != s.end())
succeed(message, stack_frame);
Expand All @@ -679,7 +679,7 @@ namespace xtd {
}

static void contains(char32_t item, const char32_t* values, const xtd::ustring& message, const xtd::diagnostics::stack_frame& stack_frame) {
ustring s(values);
std::u32string s(values);
auto result = std::find(s.begin(), s.end(), item);
if (result != s.end())
succeed(message, stack_frame);
Expand All @@ -688,7 +688,7 @@ namespace xtd {
}

static void contains(wchar_t item, const wchar_t* values, const xtd::ustring& message, const xtd::diagnostics::stack_frame& stack_frame) {
ustring s(values);
std::wstring s(values);
auto result = std::find(s.begin(), s.end(), item);
if (result != s.end())
succeed(message, stack_frame);
Expand Down

0 comments on commit cbc4ba7

Please sign in to comment.