From 05f2fd666902e7246b7110187d4964644291e26f Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Thu, 26 Aug 2010 16:16:22 +0200 Subject: Renamed Symbol::scope() to Symbol::enclosingScope(). --- src/libs/cplusplus/OverviewModel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libs/cplusplus/OverviewModel.cpp') diff --git a/src/libs/cplusplus/OverviewModel.cpp b/src/libs/cplusplus/OverviewModel.cpp index a90c7f88ae..e2b1e58e69 100644 --- a/src/libs/cplusplus/OverviewModel.cpp +++ b/src/libs/cplusplus/OverviewModel.cpp @@ -90,10 +90,10 @@ QModelIndex OverviewModel::parent(const QModelIndex &child) const if (!symbol) // account for no symbol item return QModelIndex(); - if (Scope *scope = symbol->scope()) { - if (scope->scope()) { + if (Scope *scope = symbol->enclosingScope()) { + if (scope->enclosingScope()) { QModelIndex index; - if (scope->scope() && scope->scope()->scope()) // the parent doesn't have a parent + if (scope->enclosingScope() && scope->enclosingScope()->enclosingScope()) // the parent doesn't have a parent index = createIndex(scope->index(), 0, scope); else //+1 to account for no symbol item index = createIndex(scope->index() + 1, 0, scope); -- cgit v1.2.1