Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/vcs/models/vcsannotationmodel.cpp
Show First 20 Lines • Show All 176 Lines • ▼ Show 20 Line(s) | 174 | { | |||
---|---|---|---|---|---|
177 | if (!d->m_annotation.containsLine(line)) { | 177 | if (!d->m_annotation.containsLine(line)) { | ||
178 | return VcsRevision(); | 178 | return VcsRevision(); | ||
179 | } | 179 | } | ||
180 | 180 | | |||
181 | Q_ASSERT(line >= 0 && d->m_annotation.containsLine(line)); | 181 | Q_ASSERT(line >= 0 && d->m_annotation.containsLine(line)); | ||
182 | return d->m_annotation.line( line ).revision(); | 182 | return d->m_annotation.line( line ).revision(); | ||
183 | } | 183 | } | ||
184 | 184 | | |||
185 | VcsAnnotationLine VcsAnnotationModel::annotationLine(int line) const | ||||
186 | { | ||||
187 | if (line < 0 || !d->m_annotation.containsLine(line)) { | ||||
188 | return VcsAnnotationLine(); | ||||
189 | } | ||||
190 | | ||||
191 | return d->m_annotation.line(line); | ||||
192 | } | ||||
193 | | ||||
185 | } | 194 | } | ||
186 | 195 | | |||
187 | #include "moc_vcsannotationmodel.cpp" | 196 | #include "moc_vcsannotationmodel.cpp" |