Skip to content

Commit

Permalink
tryfix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex2772 committed Jan 5, 2025
1 parent fd9e659 commit 42b568c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion aui.core/src/AUI/Traits/concepts.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,10 @@ concept ACompatibleSlotFor = requires (Slot&& c) {

class API_AUI_CORE AObjectBase;

struct ASlotDefBase {};

template<aui::convertible_to<AObjectBase*> ObjectPtr, typename Invocable>
struct ASlotDef {
struct ASlotDef: ASlotDefBase {
ObjectPtr boundObject;
Invocable invocable;
};
Expand Down
2 changes: 1 addition & 1 deletion aui.views/src/AUI/Util/ADataBinding.h
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ inline const _<Object>& operator&(const _<Object>& object, Connectable&& binding
using Binding = ADataBindingDefault<std::decay_t<Object>, std::decay_t<T>...>;
static_assert(
requires { { Binding::property(object) } -> AAnyProperty; } ||
requires { { ASlotDef(Binding::property(object)) };},
requires { { Binding::property(object) } -> aui::derived_from<ASlotDefBase>; },
"ADataBindingDefault is required to have property() function to return any property or slot def; either "
"define proper ADataBindingDefault specialization or explicitly specify the destination property.");
static_assert(
Expand Down
2 changes: 1 addition & 1 deletion aui.views/src/AUI/View/AAbstractLabel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ AString AAbstractLabel::getTransformedText() {

void AAbstractLabel::onDpiChanged() {
AView::onDpiChanged();
ui_threadX [&] {
ui_threadX [this, self = shared_from_this()] {
mPrerendered = nullptr;
redraw();
};
Expand Down

0 comments on commit 42b568c

Please sign in to comment.