From 9375cbea4426d1200e57dca047e167d32f520999 Mon Sep 17 00:00:00 2001 From: scrawl Date: Sat, 9 Jul 2016 20:19:06 +0200 Subject: [PATCH] Make NIFFilePtr const --- components/nif/niffile.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/nif/niffile.hpp b/components/nif/niffile.hpp index 900c360bb..9a2acbb9f 100644 --- a/components/nif/niffile.hpp +++ b/components/nif/niffile.hpp @@ -48,14 +48,14 @@ class NIFFile public: /// Used if file parsing fails - void fail(const std::string &msg) + void fail(const std::string &msg) const { std::string err = " NIFFile Error: " + msg; err += "\nFile: " + filename; throw std::runtime_error(err); } /// Used when something goes wrong, but not catastrophically so - void warn(const std::string &msg) + void warn(const std::string &msg) const { std::cerr << " NIFFile Warning: " << msg < NIFFilePtr; +typedef boost::shared_ptr NIFFilePtr;