XCode warning fixes.

This commit is contained in:
James Turner 2013-06-22 16:15:41 +01:00
parent bb7875edd4
commit c458c13af7
4 changed files with 2 additions and 6 deletions

View File

@ -26,8 +26,7 @@
#include "tabbed_values.hxx" #include "tabbed_values.hxx"
SGTabbedValues::SGTabbedValues(const char *line) : SGTabbedValues::SGTabbedValues(const char *line)
_line(line)
{ {
assert(line); assert(line);
_fields.push_back(const_cast<char*>(line)); _fields.push_back(const_cast<char*>(line));

View File

@ -46,8 +46,6 @@ public:
private: private:
const char* fieldAt(const unsigned int offset) const; const char* fieldAt(const unsigned int offset) const;
const char* _line;
/** this is first character of each field, if the field is empty /** this is first character of each field, if the field is empty
it will be the tab character. It is lazily built as needed, so it will be the tab character. It is lazily built as needed, so
if only the first field is accessed (which is a common case) we if only the first field is accessed (which is a common case) we

View File

@ -1292,7 +1292,7 @@ extern int ZEXPORT unzReadCurrentFile (file, buf, len)
return UNZ_PARAMERROR; return UNZ_PARAMERROR;
if ((pfile_in_zip_read_info->read_buffer == NULL)) if (pfile_in_zip_read_info->read_buffer == NULL)
return UNZ_END_OF_LIST_OF_FILE; return UNZ_END_OF_LIST_OF_FILE;
if (len==0) if (len==0)
return 0; return 0;

View File

@ -91,7 +91,6 @@ public:
private: private:
std::string _refname; // sample name std::string _refname; // sample name
std::vector<unsigned int> _buffers; std::vector<unsigned int> _buffers;
unsigned int _buffer;
bool _playing; bool _playing;