Sfoglia il codice sorgente

Merge pull request #6559 from haberman/notypedef

Removed ByteCountInt64.  This is a transitional typedef that should n…
Joshua Haberman 6 anni fa
parent
commit
06d26df704
1 ha cambiato i file con 2 aggiunte e 6 eliminazioni
  1. 2 6
      src/google/protobuf/io/zero_copy_stream.h

+ 2 - 6
src/google/protobuf/io/zero_copy_stream.h

@@ -117,10 +117,6 @@ namespace google {
 namespace protobuf {
 namespace protobuf {
 namespace io {
 namespace io {
 
 
-// TODO(b/136291652): remove once we have switched the default to int64_t and
-// updated everyone who derives from this class.
-using ByteCountInt64 = int64_t;
-
 // Defined in this file.
 // Defined in this file.
 class ZeroCopyInputStream;
 class ZeroCopyInputStream;
 class ZeroCopyOutputStream;
 class ZeroCopyOutputStream;
@@ -175,7 +171,7 @@ class PROTOBUF_EXPORT ZeroCopyInputStream {
   virtual bool Skip(int count) = 0;
   virtual bool Skip(int count) = 0;
 
 
   // Returns the total number of bytes read since this object was created.
   // Returns the total number of bytes read since this object was created.
-  virtual ByteCountInt64 ByteCount() const = 0;
+  virtual int64_t ByteCount() const = 0;
 
 
 
 
  private:
  private:
@@ -230,7 +226,7 @@ class PROTOBUF_EXPORT ZeroCopyOutputStream {
   virtual void BackUp(int count) = 0;
   virtual void BackUp(int count) = 0;
 
 
   // Returns the total number of bytes written since this object was created.
   // Returns the total number of bytes written since this object was created.
-  virtual ByteCountInt64 ByteCount() const = 0;
+  virtual int64_t ByteCount() const = 0;
 
 
   // Write a given chunk of data to the output.  Some output streams may
   // Write a given chunk of data to the output.  Some output streams may
   // implement this in a way that avoids copying. Check AllowsAliasing() before
   // implement this in a way that avoids copying. Check AllowsAliasing() before