diff options
author | Ken Martin <ken.martin@kitware.com> | 2007-10-22 19:33:19 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2007-10-22 19:33:19 (GMT) |
commit | 44cce51a1a36973344a0bc1bb99f39410fd678e6 (patch) | |
tree | 29b3d0e23e07e3a6b8356396f15bcdcb488e2261 /Source/cmDocumentationSection.cxx | |
parent | 5765fbbb8803047850194d1498e573b78bcf50eb (diff) | |
download | CMake-44cce51a1a36973344a0bc1bb99f39410fd678e6.zip CMake-44cce51a1a36973344a0bc1bb99f39410fd678e6.tar.gz CMake-44cce51a1a36973344a0bc1bb99f39410fd678e6.tar.bz2 |
COMP: fix some warnings and add some doc strings back in
Diffstat (limited to 'Source/cmDocumentationSection.cxx')
-rw-r--r-- | Source/cmDocumentationSection.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/cmDocumentationSection.cxx b/Source/cmDocumentationSection.cxx index c4a4edf..88b9eeb 100644 --- a/Source/cmDocumentationSection.cxx +++ b/Source/cmDocumentationSection.cxx @@ -31,6 +31,21 @@ void cmDocumentationSection::Append(const char *data[][3]) } //---------------------------------------------------------------------------- +void cmDocumentationSection::Prepend(const char *data[][3]) +{ + std::vector<cmDocumentationEntry> tmp; + int i = 0; + while(data[i][1]) + { + tmp.push_back(cmDocumentationEntry(data[i][0], + data[i][1], + data[i][2])); + data += 1; + } + this->Entries.insert(this->Entries.begin(),tmp.begin(),tmp.end()); +} + +//---------------------------------------------------------------------------- void cmDocumentationSection::Append(const char *n, const char *b, const char *f) { |