You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/xtd.forms/src/xtd/forms/about_dialog.cpp
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ using namespace xtd;
22
22
usingnamespacextd::collections::generic;
23
23
usingnamespacextd::drawing;
24
24
usingnamespacextd::forms;
25
+
usingnamespacextd::helpers;
25
26
usingnamespacextd::reflection;
26
27
27
28
namespace {
@@ -59,7 +60,7 @@ namespace {
59
60
protected:
60
61
xtd::uptr<xtd::object> clone() constoverride {
61
62
auto result = xtd::new_uptr<credits_item_panel>(*this);
62
-
if (typeof_(*result) != typeof_(*this)) xtd::helpers::throw_helper::throws(xtd::helpers::exception_case::invalid_cast, xtd::string::format("The {} does not implement clone method.", typeof_(*this).full_name()).c_str());
63
+
if (typeof_(*result) != typeof_(*this)) throw_helper::throws(exception_case::invalid_cast, xtd::string::format("The {} does not implement clone method.", typeof_(*this).full_name()).c_str());
Copy file name to clipboardExpand all lines: src/xtd.forms/src/xtd/forms/animation.cpp
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@ using namespace xtd;
5
5
usingnamespacextd::diagnostics;
6
6
usingnamespacextd::drawing;
7
7
usingnamespacextd::forms;
8
+
usingnamespacextd::helpers;
8
9
9
10
structanimation::data {
10
11
uint32 frame_counter = 0;
@@ -200,7 +201,7 @@ void animation::stop() {
200
201
201
202
xtd::uptr<xtd::object> animation::clone() const {
202
203
auto result = xtd::new_uptr<animation>(*this);
203
-
if (typeof_(*result) != typeof_(*this)) xtd::helpers::throw_helper::throws(xtd::helpers::exception_case::invalid_cast, xtd::string::format("The {} does not implement clone method.", typeof_(*this).full_name()).c_str());
204
+
if (typeof_(*result) != typeof_(*this)) throw_helper::throws(exception_case::invalid_cast, xtd::string::format("The {} does not implement clone method.", typeof_(*this).full_name()).c_str());
0 commit comments