Index: third_party/protobuf/src/google/protobuf/descriptor_database.h |
diff --git a/third_party/protobuf/src/google/protobuf/descriptor_database.h b/third_party/protobuf/src/google/protobuf/descriptor_database.h |
index 86002d56f623fc63362580a06c3a7205b13881be..be97a6d8862af674815e59f0de0a5b4583bcc98b 100644 |
--- a/third_party/protobuf/src/google/protobuf/descriptor_database.h |
+++ b/third_party/protobuf/src/google/protobuf/descriptor_database.h |
@@ -97,7 +97,7 @@ class LIBPROTOBUF_EXPORT DescriptorDatabase { |
// This method has a default implementation that always returns |
// false. |
virtual bool FindAllExtensionNumbers(const string& /* extendee_type */, |
- vector<int>* /* output */) { |
+ std::vector<int>* /* output */) { |
return false; |
} |
@@ -150,7 +150,7 @@ class LIBPROTOBUF_EXPORT SimpleDescriptorDatabase : public DescriptorDatabase { |
int field_number, |
FileDescriptorProto* output); |
bool FindAllExtensionNumbers(const string& extendee_type, |
- vector<int>* output); |
+ std::vector<int>* output); |
private: |
// So that it can use DescriptorIndex. |
@@ -175,12 +175,12 @@ class LIBPROTOBUF_EXPORT SimpleDescriptorDatabase : public DescriptorDatabase { |
Value FindSymbol(const string& name); |
Value FindExtension(const string& containing_type, int field_number); |
bool FindAllExtensionNumbers(const string& containing_type, |
- vector<int>* output); |
+ std::vector<int>* output); |
private: |
- map<string, Value> by_name_; |
- map<string, Value> by_symbol_; |
- map<pair<string, int>, Value> by_extension_; |
+ std::map<string, Value> by_name_; |
+ std::map<string, Value> by_symbol_; |
+ std::map<std::pair<string, int>, Value> by_extension_; |
// Invariant: The by_symbol_ map does not contain any symbols which are |
// prefixes of other symbols in the map. For example, "foo.bar" is a |
@@ -235,7 +235,7 @@ class LIBPROTOBUF_EXPORT SimpleDescriptorDatabase : public DescriptorDatabase { |
// Find the last entry in the by_symbol_ map whose key is less than or |
// equal to the given name. |
- typename map<string, Value>::iterator FindLastLessOrEqual( |
+ typename std::map<string, Value>::iterator FindLastLessOrEqual( |
const string& name); |
// True if either the arguments are equal or super_symbol identifies a |
@@ -250,7 +250,7 @@ class LIBPROTOBUF_EXPORT SimpleDescriptorDatabase : public DescriptorDatabase { |
DescriptorIndex<const FileDescriptorProto*> index_; |
- vector<const FileDescriptorProto*> files_to_delete_; |
+ std::vector<const FileDescriptorProto*> files_to_delete_; |
// If file is non-NULL, copy it into *output and return true, otherwise |
// return false. |
@@ -295,15 +295,16 @@ class LIBPROTOBUF_EXPORT EncodedDescriptorDatabase : public DescriptorDatabase { |
int field_number, |
FileDescriptorProto* output); |
bool FindAllExtensionNumbers(const string& extendee_type, |
- vector<int>* output); |
+ std::vector<int>* output); |
private: |
- SimpleDescriptorDatabase::DescriptorIndex<pair<const void*, int> > index_; |
- vector<void*> files_to_delete_; |
+ SimpleDescriptorDatabase::DescriptorIndex<std::pair<const void*, int> > |
+ index_; |
+ std::vector<void*> files_to_delete_; |
// If encoded_file.first is non-NULL, parse the data into *output and return |
// true, otherwise return false. |
- bool MaybeParse(pair<const void*, int> encoded_file, |
+ bool MaybeParse(std::pair<const void*, int> encoded_file, |
FileDescriptorProto* output); |
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EncodedDescriptorDatabase); |
@@ -324,7 +325,7 @@ class LIBPROTOBUF_EXPORT DescriptorPoolDatabase : public DescriptorDatabase { |
int field_number, |
FileDescriptorProto* output); |
bool FindAllExtensionNumbers(const string& extendee_type, |
- vector<int>* output); |
+ std::vector<int>* output); |
private: |
const DescriptorPool& pool_; |
@@ -341,7 +342,8 @@ class LIBPROTOBUF_EXPORT MergedDescriptorDatabase : public DescriptorDatabase { |
// Merge more than two databases. The sources remain property of the caller. |
// The vector may be deleted after the constructor returns but the |
// DescriptorDatabases need to stick around. |
- explicit MergedDescriptorDatabase(const vector<DescriptorDatabase*>& sources); |
+ explicit MergedDescriptorDatabase( |
+ const std::vector<DescriptorDatabase*>& sources); |
~MergedDescriptorDatabase(); |
// implements DescriptorDatabase ----------------------------------- |
@@ -355,11 +357,11 @@ class LIBPROTOBUF_EXPORT MergedDescriptorDatabase : public DescriptorDatabase { |
// Merges the results of calling all databases. Returns true iff any |
// of the databases returned true. |
bool FindAllExtensionNumbers(const string& extendee_type, |
- vector<int>* output); |
+ std::vector<int>* output); |
private: |
- vector<DescriptorDatabase*> sources_; |
+ std::vector<DescriptorDatabase*> sources_; |
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(MergedDescriptorDatabase); |
}; |