mirror of
https://github.com/akuker/RASCSI.git
synced 2024-12-21 23:29:39 +00:00
Added cast
This commit is contained in:
parent
b8599ba088
commit
8177cd3062
@ -281,7 +281,7 @@ void RasctlDisplay::DisplayOperationInfo(const PbOperationInfo& operation_info)
|
|||||||
|
|
||||||
cout << "Remote operations supported by rascsi and their parameters:" << endl;
|
cout << "Remote operations supported by rascsi and their parameters:" << endl;
|
||||||
for (const auto& operation : operations) {
|
for (const auto& operation : operations) {
|
||||||
if (PbOperation_IsValid(operation.first)) {
|
if (PbOperation_IsValid(static_cast<PbOperation>(operation.first))) {
|
||||||
cout << " " << PbOperation_Name(static_cast<PbOperation>(operation.first));
|
cout << " " << PbOperation_Name(static_cast<PbOperation>(operation.first));
|
||||||
if (!operation.second.description().empty()) {
|
if (!operation.second.description().empty()) {
|
||||||
cout << " (" << operation.second.description().at("en") << ")";
|
cout << " (" << operation.second.description().at("en") << ")";
|
||||||
|
Loading…
Reference in New Issue
Block a user