Changeset 447 for branches


Ignore:
Timestamp:
03/09/14 17:20:04 (6 years ago)
Author:
jls17
Message:
Location:
branches/work_304
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/work_304/ARInside.cpp

    r443 r447  
    914914        // Image 
    915915        { 
    916                 // image object count per first char 
    917                 vector<int> imgObjCount; imgObjCount.resize(38); 
    918  
    919                 CDocImageOverview imageOverview("*", imgObjCount); 
     916                CDocImageOverview imageOverview("*"); 
    920917                indexSummary.imageCount = imageOverview.Build(); 
    921918        } 
  • branches/work_304/doc/DocImageOverview.cpp

    r445 r447  
    2222#include "../output/LetterFilterControl.h" 
    2323 
    24 CDocImageOverview::CDocImageOverview(const std::string &startChar, std::vector<int> &countPerLetter) 
    25 : searchChar(startChar), objCountPerLetter(countPerLetter) 
     24CDocImageOverview::CDocImageOverview(const std::string &startChar) 
     25: searchChar(startChar) 
    2626{ 
    2727} 
     
    6464                        { 
    6565                                letterFilter.IncStartLetterOf(img); 
    66                                 // the first call to this function holds always "*" as search char. That's the 
    67                                 // best time to sum up the object count per letter. 
    68                                 string firstChar = img.GetNameFirstChar(); 
    69                                 if (firstChar.empty()) firstChar = "*"; 
    70                                 int index = CARObject::GetFirstCharIndex(firstChar[0]); 
    71                                 ++(objCountPerLetter[index]); 
    7266                                bInsert = true; 
    7367                        } 
  • branches/work_304/doc/DocImageOverview.h

    r445 r447  
    2020{ 
    2121public: 
    22         CDocImageOverview(const std::string &startChar, std::vector<int> &objCountPerLetter); 
     22        CDocImageOverview(const std::string &startChar); 
    2323        ~CDocImageOverview(void); 
    2424 
     
    2727private: 
    2828        int rootLevel; 
    29         std::vector<int> &objCountPerLetter; 
    3029        std::string searchChar; 
    3130}; 
Note: See TracChangeset for help on using the changeset viewer.