================ DialogDeclBrowser::GetDeclFromTreeItem ================ */
| 250 | ================ |
| 251 | */ |
| 252 | const idDecl *DialogDeclBrowser::GetDeclFromTreeItem( HTREEITEM item ) const { |
| 253 | int id, index; |
| 254 | declType_t type; |
| 255 | const idDecl *decl; |
| 256 | |
| 257 | if ( declTree.GetChildItem( item ) ) { |
| 258 | return NULL; |
| 259 | } |
| 260 | |
| 261 | id = declTree.GetItemData( item ); |
| 262 | type = GetTypeFromId( id ); |
| 263 | index = GetIndexFromId( id ); |
| 264 | |
| 265 | if ( type < 0 || type >= declManager->GetNumDeclTypes() ) { |
| 266 | return NULL; |
| 267 | } |
| 268 | |
| 269 | decl = declManager->DeclByIndex( type, index, false ); |
| 270 | |
| 271 | return decl; |
| 272 | } |
| 273 | |
| 274 | /* |
| 275 | ================ |
nothing calls this directly
no test coverage detected