[gtkmm/gtkmm-3-24] treemodelcolumn.h: Export class selectively
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm/gtkmm-3-24] treemodelcolumn.h: Export class selectively
- Date: Tue, 11 May 2021 10:17:59 +0000 (UTC)
commit 47bab3e1b22944688e369e0ead3da98ea07ce9b7
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Tue May 11 18:03:12 2021 +0800
treemodelcolumn.h: Export class selectively
This class contains a std::vector<GType> member, so don't export this class as
a whole but export its methods individually.
This will eliminate warning C4251 and avoid having the built code depend on a
specific STL and compiler version
gtk/gtkmm/treemodelcolumn.h | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkmm/treemodelcolumn.h b/gtk/gtkmm/treemodelcolumn.h
index 956aa0af..78d8c409 100644
--- a/gtk/gtkmm/treemodelcolumn.h
+++ b/gtk/gtkmm/treemodelcolumn.h
@@ -67,28 +67,28 @@ class GTKMM_API TreeModelColumnBase;
* sure it's instantiated after Gtk::Main), even when creating multiple models
* from it.
*/
-class GTKMM_API TreeModelColumnRecord
+class TreeModelColumnRecord
{
public:
- TreeModelColumnRecord();
- virtual ~TreeModelColumnRecord() noexcept;
+ GTKMM_API TreeModelColumnRecord();
+ GTKMM_API virtual ~TreeModelColumnRecord() noexcept;
/** Adds a TreeModelColumn to this record.
* add() not only registers the @a column, but also assigns a column
* index to it. Once registered, the TreeModelColumn is final, and
* you're free to pass it around by value.
*/
- void add(TreeModelColumnBase& column);
+ GTKMM_API void add(TreeModelColumnBase& column);
- unsigned int size() const;
- const GType* types() const;
+ GTKMM_API unsigned int size() const;
+ GTKMM_API const GType* types() const;
private:
std::vector<GType> column_types_;
// noncopyable
- TreeModelColumnRecord(const TreeModelColumnRecord&);
- TreeModelColumnRecord& operator=(const TreeModelColumnRecord&);
+ GTKMM_API TreeModelColumnRecord(const TreeModelColumnRecord&);
+ GTKMM_API TreeModelColumnRecord& operator=(const TreeModelColumnRecord&);
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]