Skip to content
Snippets Groups Projects
Commit dd039b69 authored by marco's avatar marco
Browse files

silence warnings

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2074 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent abf5e7d8
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,7 @@ using boost::format; ...@@ -55,7 +55,7 @@ using boost::format;
std::vector<std::string> nrvo; std::vector<std::string> nrvo;
bool in_string=false; bool in_string=false;
int p0=0; int p0=0;
for(int p1=1;p1<line.size();++p1) { for(size_t p1=1;p1<line.size();++p1) {
if(in_string) { if(in_string) {
if(line[p1]=='"') { if(line[p1]=='"') {
in_string=false; in_string=false;
...@@ -111,7 +111,6 @@ void MAEReader::Import(mol::EntityHandle& ent) ...@@ -111,7 +111,6 @@ void MAEReader::Import(mol::EntityHandle& ent)
bool in_ct_block=false; bool in_ct_block=false;
bool in_atom_block=false; bool in_atom_block=false;
bool parsing_atoms=false; bool parsing_atoms=false;
bool debug=true;
std::vector<std::string> prop_list; std::vector<std::string> prop_list;
int i_atom_name=-1; int i_atom_name=-1;
int i_atom_xpos=-1; int i_atom_xpos=-1;
...@@ -289,7 +288,7 @@ bool mae_handler_is_responsible_for(const boost::filesystem::path& loc, ...@@ -289,7 +288,7 @@ bool mae_handler_is_responsible_for(const boost::filesystem::path& loc,
const String& type) { const String& type) {
if(type=="auto") { if(type=="auto") {
String match_suf_string=loc.string(); String match_suf_string=loc.string();
std::transform(match_suf_string.begin(),match_suf_string.end(),match_suf_string.begin(),tolower); std::transform(match_suf_string.begin(),match_suf_string.end(),match_suf_string.begin(),tolower);
if( detail::FilenameEndsWith(match_suf_string,".mae") || detail::FilenameEndsWith(match_suf_string,".mae.gz") ) { if( detail::FilenameEndsWith(match_suf_string,".mae") || detail::FilenameEndsWith(match_suf_string,".mae.gz") ) {
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment