Changeset 11166

Show
Ignore:
Timestamp:
2008-09-03 14:43:27 (3 months ago)
Author:
olly
Message:

Backport change from trunk:
omindex.cc: Tweak to use string::assign() instead of assigning the
result of string::substr().

Location:
branches/1.0/xapian-applications/omega
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0/xapian-applications/omega/ChangeLog

    r11165 r11166  
     1Wed Sep 03 13:43:24 GMT 2008  Olly Betts <olly@survex.com> 
     2 
     3        * Backport change from trunk: 
     4        * omindex.cc: Tweak to use string::assign() instead of assigning the 
     5          result of string::substr(). 
     6 
    17Wed Sep 03 13:40:39 GMT 2008  Olly Betts <olly@survex.com> 
    28 
  • branches/1.0/xapian-applications/omega/omindex.cc

    r10803 r11166  
    158158                end -= idx; 
    159159            } 
    160             title = pdfinfo.substr(idx, end); 
     160            title.assign(pdfinfo, idx, end); 
    161161        } 
    162162 
     
    174174                end -= idx; 
    175175            } 
    176             keywords = pdfinfo.substr(idx, end); 
     176            keywords.assign(pdfinfo, idx, end); 
    177177        } 
    178178    } catch (ReadError) {