various fixes
fixed compiler warnings fixed bad overridings fixed FreeBSD support
This commit is contained in:
parent
26ce77ded5
commit
216cb786e7
@ -142,7 +142,11 @@ endif()
|
||||
#
|
||||
if(CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
||||
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
||||
set(CMAKE_CXX_FLAGS "-std=gnu++14 -Wall")
|
||||
if("${CMAKE_SYSTEM_NAME}" MATCHES "FreeBSD")
|
||||
set(CMAKE_CXX_FLAGS "-std=gnu++14 -Wall -I/usr/local/include")
|
||||
else()
|
||||
set(CMAKE_CXX_FLAGS "-std=gnu++14 -Wall")
|
||||
endif()
|
||||
else()
|
||||
set(CMAKE_CXX_FLAGS "-std=c++14 -Wall")
|
||||
endif()
|
||||
|
@ -1541,7 +1541,7 @@ the nana::detail::basic_window member pointer scheme
|
||||
nana::any* _m_anyobj(size_type cat, size_type index, bool allocate_if_empty) const override;
|
||||
drawerbase::listbox::category_t* _m_assoc(std::shared_ptr<nana::detail::key_interface>, bool create_if_not_exists);
|
||||
void _m_erase_key(nana::detail::key_interface*) noexcept;
|
||||
std::shared_ptr<scroll_operation_interface> _m_scroll_operation();
|
||||
std::shared_ptr<scroll_operation_interface> _m_scroll_operation() override;
|
||||
};
|
||||
}//end namespace nana
|
||||
|
||||
|
@ -279,7 +279,7 @@ namespace nana
|
||||
native_string_type _m_caption() const throw() override;
|
||||
void _m_caption(native_string_type&&) override;
|
||||
void _m_typeface(const paint::font&) override;
|
||||
std::shared_ptr<scroll_operation_interface> _m_scroll_operation() const;
|
||||
std::shared_ptr<scroll_operation_interface> _m_scroll_operation() override;
|
||||
};
|
||||
}//end namespace nana
|
||||
#include <nana/pop_ignore_diagnostic>
|
||||
|
@ -446,7 +446,7 @@ namespace nana
|
||||
item_proxy selected() const; ///< returns the selected node
|
||||
|
||||
private:
|
||||
std::shared_ptr<scroll_operation_interface> _m_scroll_operation() const;
|
||||
std::shared_ptr<scroll_operation_interface> _m_scroll_operation() override;
|
||||
|
||||
};//end class treebox
|
||||
}//end namespace nana
|
||||
|
@ -2583,8 +2583,9 @@ namespace nana
|
||||
: public division
|
||||
{
|
||||
public:
|
||||
div_switchable(std::string && name, implement* impl) noexcept
|
||||
: division(kind::switchable, std::move(name)), impl_(impl)
|
||||
div_switchable(std::string && name, implement* /*impl*/) noexcept:
|
||||
division(kind::switchable, std::move(name))//,
|
||||
//impl_(impl) //deprecated
|
||||
{}
|
||||
private:
|
||||
void collocate(window wd) override
|
||||
@ -2613,7 +2614,7 @@ namespace nana
|
||||
}
|
||||
}
|
||||
private:
|
||||
implement * const impl_;
|
||||
//implement * const impl_; //deprecated
|
||||
};
|
||||
|
||||
place::implement::~implement()
|
||||
|
@ -817,7 +817,7 @@ namespace drawerbase {
|
||||
editor->reset_caret_pixels();
|
||||
}
|
||||
|
||||
std::shared_ptr<scroll_operation_interface> textbox::_m_scroll_operation() const
|
||||
std::shared_ptr<scroll_operation_interface> textbox::_m_scroll_operation()
|
||||
{
|
||||
internal_scope_guard lock;
|
||||
auto editor = get_drawer_trigger().editor();
|
||||
|
@ -2234,7 +2234,7 @@ namespace nana
|
||||
return item_proxy(const_cast<drawer_trigger_t*>(&get_drawer_trigger()), get_drawer_trigger().selected());
|
||||
}
|
||||
|
||||
std::shared_ptr<scroll_operation_interface> treebox::_m_scroll_operation() const
|
||||
std::shared_ptr<scroll_operation_interface> treebox::_m_scroll_operation()
|
||||
{
|
||||
internal_scope_guard lock;
|
||||
return std::make_shared<drawerbase::treebox::exclusive_scroll_operation>(get_drawer_trigger().impl()->shape.scroll);
|
||||
|
Loading…
x
Reference in New Issue
Block a user