diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-03-06 16:36:40 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-03-06 16:36:40 +0000 |
commit | a15a81c45b44d9949be6ce16682a405cbb9b4228 (patch) | |
tree | 7be1d8582280f2366c477168f8579e1578f7a1cf | |
parent | 5e27314eb5a9cba7997cf9f6fc82428d99667077 (diff) |
Use list instead of vector for storing strings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66271 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Analysis/PathDiagnostic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Analysis/PathDiagnostic.h b/include/clang/Analysis/PathDiagnostic.h index a387910860..3096859203 100644 --- a/include/clang/Analysis/PathDiagnostic.h +++ b/include/clang/Analysis/PathDiagnostic.h @@ -101,7 +101,7 @@ class PathDiagnostic { std::string BugType; std::string Desc; std::string Category; - std::vector<std::string> OtherDesc; + std::list<std::string> OtherDesc; public: PathDiagnostic(); @@ -117,7 +117,7 @@ public: const std::string& getBugType() const { return BugType; } const std::string& getCategory() const { return Category; } - typedef std::vector<std::string>::const_iterator meta_iterator; + typedef std::list<std::string>::const_iterator meta_iterator; meta_iterator meta_begin() const { return OtherDesc.begin(); } meta_iterator meta_end() const { return OtherDesc.end(); } void addMeta(const std::string& s) { OtherDesc.push_back(s); } |