OSDN Git Service

[Refactor] #3496 optional 型の存在判定 has_value() を撤廃した その2
[hengbandforosx/hengbandosx.git] / src / flavor / named-item-describer.cpp
index 3c3db52..b9fa866 100644 (file)
@@ -192,7 +192,7 @@ static std::string describe_unique_name_after_body_ja(const ItemEntity &item, co
         return "";
     }
 
-    if (auto body = describe_random_artifact_name_after_body_ja(item); body.has_value()) {
+    if (auto body = describe_random_artifact_name_after_body_ja(item); body) {
         return body.value();
     }