[ create a new paste ] login | about

Link: http://codepad.org/5i6NH2Fg    [ raw code | output | fork ]

C++, pasted on Feb 26:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
    int CommentsModel::rowCount (const QModelIndex& parent) const
    {
        LJComment *parentItem;
        if (parent.column () > 0)
            return 0;

        if (!parent.isValid ())
            parentItem = RootItem_;
        else
            parentItem = static_cast<LJComment*> (parent.internalPointer ());

        qDebug () << Q_FUNC_INFO << parentItem->GetChildrenCount ();
        return parentItem->GetChildrenCount ();
    }


Output:
1
2
Line 1: error: 'CommentsModel' has not been declared
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: