Skip to content

Commit

Permalink
Fix compile error on non-debug build.
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohns committed Aug 24, 2023
1 parent 50e6610 commit 33323d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/QRSpectrum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ vector<string> url_encode_spectrum( const UrlSpectrum &m,
{
string operator_notes = remove_field_delimiters( m.m_title );
if( operator_notes.size() > 60 )
operator_notes.substr(0, 60);
operator_notes = operator_notes.substr(0, 60);

string remark;
remark = operator_notes;
Expand Down Expand Up @@ -1373,7 +1373,7 @@ vector<string> url_encode_spectrum( const UrlSpectrum &m,
answer[msg_num] = base64url_encode( answer[msg_num], false );
}else
{
answer[msg_num] = base45_encode( answer[msg_num], false );
answer[msg_num] = base45_encode( answer[msg_num] );
}
#endif
//cout << "During encoding, after base-45: '" << to_hex_bytes_str(answer[msg_num].substr(0,60)) << "'" << endl << endl;
Expand Down Expand Up @@ -2462,7 +2462,7 @@ vector<UrlSpectrum> to_url_spectra( vector<shared_ptr<const SpecUtils::Measureme
string operator_notes = spec->title();
SpecUtils::ireplace_all( operator_notes, ":", " " );
if( operator_notes.size() > 60 )
operator_notes.substr(0, 60);
operator_notes = operator_notes.substr(0, 60);

// TODO: look for this info in the "Remarks" - I think Ortec Detectives and some other models will end up getting user input to there maybe?
urlspec.m_title = operator_notes;
Expand Down

0 comments on commit 33323d5

Please sign in to comment.