Skip to content
Browse files

clang: fix declaration of default arg

depend on os/clang version it's a warning or an error:
error: addition of default argument on redeclaration makes
    this constructor a default constructor
warning: addition of default argument on redeclaration makes
    this constructor a default constructor

full errors: http://pastebin.com/tnJXZV8L
  • Loading branch information...
1 parent a875bcf commit 700a245dae9f3556cbc470c3fc06b884799a8c08 Fneufneu committed Aug 28, 2013
View
2 xbmc/visualizations/XBMCProjectM/libprojectM/PresetLoader.cpp
@@ -35,7 +35,7 @@ extern "C"
const std::string PresetLoader::PROJECTM_FILE_EXTENSION(".prjm");
const std::string PresetLoader::MILKDROP_FILE_EXTENSION(".milk");
-PresetLoader::PresetLoader(std::string dirname = std::string()) :m_dirname(dirname), m_dir(0), m_ratingsSum(0)
+PresetLoader::PresetLoader(std::string dirname) :m_dirname(dirname), m_dir(0), m_ratingsSum(0)
{
// Do one scan
if (m_dirname != std::string())
View
2 xbmc/visualizations/XBMCProjectM/libprojectM/PresetLoader.hpp
@@ -29,7 +29,7 @@ class PresetLoader {
static const std::string MILKDROP_FILE_EXTENSION;
/** Initializes the preset loader with the target directory specified */
- PresetLoader(std::string dirname);
+ PresetLoader(std::string dirname = std::string());
/** Destructor will remove all alllocated presets */
~PresetLoader();

0 comments on commit 700a245

Please sign in to comment.
Something went wrong with that request. Please try again.