~ubuntu-branches/ubuntu/raring/dansguardian/raring

« back to all changes in this revision

Viewing changes to src/String.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Wirt, Thomas Viehmann
  • Date: 2008-10-13 09:29:35 UTC
  • mfrom: (1.1.7 upstream) (7.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20081013092935-g8uz3kgfjs37ikgv
Tags: 2.9.9.7-2
[ Thomas Viehmann ]
OptionContainer.cpp: If you need to iterate through all lines in the
config file to find a field, at least don't abuse the configfile deque
by accessing it as if it was an array with signed index.
Works way better on arm, too, i.e. closes: #493047.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
// INCLUDES
28
28
 
29
 
#include "platform.h"
30
 
 
31
29
#include <iostream>
32
30
#include <string>
33
31
#include <sys/types.h>
49
47
        String(const long num);
50
48
        String(const long unsigned num);
51
49
        String(const unsigned int num);
52
 
# ifndef __OFFT_COLLISION
 
50
# ifndef OFFT_COLLISION
53
51
        // If large file support is not enabled (and possibly even if it is),
54
52
        // the type of off_t may be a typedef of a type for which we already
55
53
        // have a constructor. In that case, don't define one which takes an