Browse Source

"enum class" instead of "enum"

Laszlo Csomor 6 năm trước cách đây
mục cha
commit
bee5538fda
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/google/protobuf/io/io_win32.h

+ 1 - 1
src/google/protobuf/io/io_win32.h

@@ -77,7 +77,7 @@ PROTOBUF_EXPORT int stat(const char* path, struct _stat* buffer);
 PROTOBUF_EXPORT int write(int fd, const void* buffer, size_t size);
 PROTOBUF_EXPORT std::wstring testonly_utf8_to_winpath(const char* path);
 
-enum ExpandWildcardsResult {
+enum class ExpandWildcardsResult {
   kSuccess = 0,
   kErrorNoMatchingFile = 1,
   kErrorInputPathConversion = 2,