[BACK]Return to patch-src_IniSection.cpp CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / www / ap2-suphp / patches

File: [cvs.NetBSD.org] / pkgsrc / www / ap2-suphp / patches / Attic / patch-src_IniSection.cpp (download)

Revision 1.1, Mon May 6 15:02:13 2013 UTC (10 years, 5 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2

const keys that need to be constructed is not likely to work with
compliant STL implementation.

$NetBSD: patch-src_IniSection.cpp,v 1.1 2013/05/06 15:02:13 joerg Exp $

--- src/IniSection.cpp.orig	2013-05-04 14:22:11.000000000 +0000
+++ src/IniSection.cpp
@@ -36,8 +36,8 @@ void suPHP::IniSection::putValue(const s
 const std::vector<std::string> suPHP::IniSection::getValues(const std::string& key) const
     throw (KeyNotFoundException) {
     std::vector<std::string> values;
-    std::pair<std::multimap<const std::string, const std::string>::const_iterator, std::multimap<const std::string, const std::string>::const_iterator> range = this->entries.equal_range(key);
-    for (std::multimap<const std::string, const std::string>::const_iterator pos = 
+    std::pair<std::multimap<std::string, std::string>::const_iterator, std::multimap<std::string, std::string>::const_iterator> range = this->entries.equal_range(key);
+    for (std::multimap<std::string, std::string>::const_iterator pos = 
         range.first; pos != range.second; pos++) {
         values.push_back(pos->second);
     }
@@ -62,7 +62,7 @@ std::string suPHP::IniSection::getValue(
 
 const std::vector<std::string> suPHP::IniSection::getKeys() const {
     std::vector<std::string> keys;
-    for (std::multimap<const std::string, const std::string>::const_iterator pos =
+    for (std::multimap<std::string, std::string>::const_iterator pos =
              this->entries.begin();
          pos != this->entries.end(); pos++) {
         keys.push_back(pos->first);