1 Feb 2005 01:04
kdesdk/umbrello/umbrello
Oliver Kellogg <okellogg <at> users.sourceforge.net>
2005-02-01 00:04:17 GMT
2005-02-01 00:04:17 GMT
CVS commit by okellogg:
formatComment(): Renamed from doxyComment. Accomodate non-doxy comments too.
M +5 -5 classimport.cpp 1.69
M +2 -4 classimport.h 1.24
--- kdesdk/umbrello/umbrello/classimport.cpp #1.68:1.69
<at> <at> -50,7 +50,7 <at> <at> ClassImport::ClassImport(UMLDoc * parent
ClassImport::~ClassImport() {}
-QString ClassImport::doxyComment(const QString &comment) {
+QString ClassImport::formatComment(const QString &comment) {
QStringList lines = QStringList::split("\n", comment);
- if (lines.first() != "/**")
+ if (!lines.first().contains("/*"))
return "";
lines.pop_front(); // remove comment start
<at> <at> -154,5 +154,5 <at> <at> UMLObject *ClassImport::createUMLObject(
o->setUMLPackage(parentPkg);
}
- QString strippedComment = doxyComment(comment);
+ QString strippedComment = formatComment(comment);
if (! strippedComment.isEmpty()) {
o->setDoc(strippedComment);
<at> <at> -191,5 +191,5 <at> <at> UMLObject* ClassImport::insertAttribute(
UMLAttribute *attr = owner->addAttribute(name, attrType, scope);
attr->setStatic(isStatic);
- QString strippedComment = doxyComment(comment);
+ QString strippedComment = formatComment(comment);
(Continue reading)
RSS Feed