[glibmm/std-string-msvc-fixes-2-66: 2/4] fileattributeinfo.hg: Avoid exporting classes with std::string members




commit 43ee62d04ae23cc728c56e250af0d3792cfe2b0a
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Thu May 6 12:51:18 2021 +0800

    fileattributeinfo.hg: Avoid exporting classes with std::string members
    
    This will help us to also eliminate C4251 warnings from code that use the
    FileAttributeInfo class.

 gio/src/fileattributeinfo.hg | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gio/src/fileattributeinfo.hg b/gio/src/fileattributeinfo.hg
index c46fab13..81155b93 100644
--- a/gio/src/fileattributeinfo.hg
+++ b/gio/src/fileattributeinfo.hg
@@ -34,23 +34,23 @@ _WRAP_ENUM(FileAttributeStatus, GFileAttributeStatus, decl_prefix GIOMM_API)
  *
  * @newin{2,16}
  */
-class GIOMM_API FileAttributeInfo
+class FileAttributeInfo
 {
   _CLASS_GENERIC(FileAttributeInfo, GFileAttributeInfo)
 public:
-  explicit FileAttributeInfo(const GFileAttributeInfo* ginfo);
+  GIOMM_API explicit FileAttributeInfo(const GFileAttributeInfo* ginfo);
 
-  FileAttributeInfo(const FileAttributeInfo& other);
-  FileAttributeInfo& operator=(const FileAttributeInfo& other);
+  GIOMM_API FileAttributeInfo(const FileAttributeInfo& other);
+  GIOMM_API FileAttributeInfo& operator=(const FileAttributeInfo& other);
 
-  FileAttributeInfo(FileAttributeInfo&& other) noexcept;
-  FileAttributeInfo& operator=(FileAttributeInfo&& other) noexcept;
+  GIOMM_API FileAttributeInfo(FileAttributeInfo&& other) noexcept;
+  GIOMM_API FileAttributeInfo& operator=(FileAttributeInfo&& other) noexcept;
 
-  ~FileAttributeInfo();
+  GIOMM_API ~FileAttributeInfo();
 
-  std::string get_name() const;
-  FileAttributeType get_type() const;
-  FileAttributeInfoFlags get_flags() const;
+  GIOMM_API std::string get_name() const;
+  GIOMM_API FileAttributeType get_type() const;
+  GIOMM_API FileAttributeInfoFlags get_flags() const;
 
 protected:
   std::string m_name;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]