comparison Core/HttpServer/HttpContentNegociation.h @ 3712:2a170a8f1faf

replacing std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Mar 2020 15:32:45 +0100
parents 94f4a18a79cc
children f9863630ec7f
comparison
equal deleted inserted replaced
3709:1f4910999fe7 3712:2a170a8f1faf
29 * You should have received a copy of the GNU General Public License 29 * You should have received a copy of the GNU General Public License
30 * along with this program. If not, see <http://www.gnu.org/licenses/>. 30 * along with this program. If not, see <http://www.gnu.org/licenses/>.
31 **/ 31 **/
32 32
33 #pragma once 33 #pragma once
34
35 #include "../Compatibility.h"
34 36
35 #include <memory> 37 #include <memory>
36 #include <boost/noncopyable.hpp> 38 #include <boost/noncopyable.hpp>
37 #include <map> 39 #include <map>
38 #include <list> 40 #include <list>
93 const std::string& source, 95 const std::string& source,
94 char separator); 96 char separator);
95 97
96 static float GetQuality(const Tokens& parameters); 98 static float GetQuality(const Tokens& parameters);
97 99
98 static void SelectBestMatch(std::auto_ptr<Reference>& best, 100 static void SelectBestMatch(std::unique_ptr<Reference>& best,
99 const Handler& handler, 101 const Handler& handler,
100 const std::string& type, 102 const std::string& type,
101 const std::string& subtype, 103 const std::string& subtype,
102 float quality); 104 float quality);
103 105