title: Error c2440: cannot convert const char[4] to char*
body: <p>i have a question:</p>
  
  <p>I have a code in QT Creator (build in MSVC2013) that first work perfectly, now in other computer with an updated QT Creator (build in MSVC2015) when try tu rungive me this error:</p>
  
  <blockquote>
    <p>"error: C2664: 'wave_object wave_init(char *)': cannot convert
    argument 1 from 'const char [4]' to 'char *'" "Conversion from string
    literal loses const qualifier (see /Zc:strictStrings)"</p>
  </blockquote>
  
  <p>Error is in this part of the code:</p>
  
  <pre><code>wave_object db4;                            
  wt_object wt;
  db4 = wave_init("db4");                     
  wt = wt_init(db4, "dwt", N, 4);            
  setDWTExtension(wt, "sym");
  setWTConv(wt, "direct");
  </code></pre>
  
  <p>The definition of the method is here:</p>
  
  <pre><code>wave_object wave_init(char* wname) {
  wave_object obj = NULL;
  int retval;
  retval = 0;
  
  if (wname != NULL) {
      retval = filtlength(wname);
  }
  </code></pre>
  
  <p>I compile this with MinGW and dont have error, in the computer with QT Creator builded with MSVC2013 work fine also with the MSVC2013 compiler but now with the QT Creator builded with MSVC2015 appears this error with the MSVC2015 compiler.</p>
  
  <p>I need to use the same compiler that was builded QT Creator because I am using QWT Plugins and is necessary to use the same compiler.</p>
  
  <p>Thank you for your help! =)</p>