summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-03-06 16:36:40 +0000
committerTed Kremenek <kremenek@apple.com>2009-03-06 16:36:40 +0000
commit704bc52bd993407f9bf5a221cc8a2e2e098e43f2 (patch)
tree007ab9c625085996c2a63b3707620073be958d74
parent8e79b8491f4609f3fb08c41befbf17201efc4726 (diff)
downloadbcm5719-llvm-704bc52bd993407f9bf5a221cc8a2e2e098e43f2.tar.gz
bcm5719-llvm-704bc52bd993407f9bf5a221cc8a2e2e098e43f2.zip
Use list instead of vector for storing strings.
llvm-svn: 66271
-rw-r--r--clang/include/clang/Analysis/PathDiagnostic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/Analysis/PathDiagnostic.h b/clang/include/clang/Analysis/PathDiagnostic.h
index a387910860b..30968592035 100644
--- a/clang/include/clang/Analysis/PathDiagnostic.h
+++ b/clang/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); }
OpenPOWER on IntegriCloud