~ubuntu-branches/ubuntu/lucid/mythtv/lucid

« back to all changes in this revision

Viewing changes to libs/libmyth/generictree.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello
  • Date: 2009-09-29 01:33:23 UTC
  • mto: This revision was merged to the branch mainline in revision 94.
  • Revision ID: james.westby@ubuntu.com-20090929013323-e6d2b5bzpg4t3t3x
Tags: upstream-0.22.0~trunk22101
ImportĀ upstreamĀ versionĀ 0.22.0~trunk22101

Show diffs side-by-side

added added

removed removed

Lines of Context:
439
439
 
440
440
void GenericTree::setAttribute(uint attribute_position, int value_of_attribute)
441
441
{
442
 
    // You can use attibutes for anything you like. Mythmusic, for example,
 
442
    // You can use attributes for anything you like. Mythmusic, for example,
443
443
    // stores a value for random ordering in the first "column" (0) and a value
444
444
    // for "intelligent" (1) ordering in the second column
445
445
 
453
453
{
454
454
    if (m_attributes->size() < (int)(which_one + 1))
455
455
    {
456
 
        cerr << "asked a GenericTree node for a nonexistant attribute\n";
 
456
        cerr << "asked a GenericTree node for a nonexistent attribute\n";
457
457
        return 0;
458
458
    }
459
459
 
512
512
 
513
513
    if (it == m_flatened_subnodes->end())
514
514
    {
515
 
        VERBOSE(VB_IMPORTANT, "Can't find active item on flatened list");
 
515
        VERBOSE(VB_IMPORTANT, "Can't find active item on flattened list");
516
516
        return NULL;
517
517
    }
518
518
    int i = it - m_flatened_subnodes->begin();