Skip to content

Commit

Permalink
Maybe fix compile issue for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohns committed Mar 13, 2024
1 parent 6cb2a7e commit 367548c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SpectrumViewerTester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ void SpectrumViewerTester::writeStateStaticHtmlHeader( std::ostream &strm,
const UserState *dbstate )
{
const string username = dbstate->user ? dbstate->user->userName() : string("Unknown");
const int state_id = dbstate->user ? static_cast<int>(dbstate->user.id()) : -1;
const string now = WDateTime::currentDateTime().toString( DATE_TIME_FORMAT_STR ).toUTF8();

writeHtmlHeader( strm, dbstate->name.toUTF8() );
Expand All @@ -271,7 +272,7 @@ void SpectrumViewerTester::writeStateStaticHtmlHeader( std::ostream &strm,
<< "\t\t\t<tr><th>Description</th><td>"
<< dbstate->description.toUTF8() << "</td></tr>\n"
<< "\t\t\t<tr><th>User State ID</th><td>"
<< viewer->m_currentStateID << "</td></tr>\n"
<< state_id << "</td></tr>\n"
<< "\t\t\t<tr><th>Foreground ID</th><td>"
<< dbstate->foregroundId << "</td></tr>\n"
<< "\t\t\t<tr><th>Background ID</th><td>"
Expand Down

0 comments on commit 367548c

Please sign in to comment.