]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests/rgw: fix ints returned where a string is expected 57330/head
authorRonen Friedman <rfriedma@redhat.com>
Tue, 7 May 2024 13:07:21 +0000 (16:07 +0300)
committerRonen Friedman <rfriedma@redhat.com>
Tue, 7 May 2024 13:07:21 +0000 (16:07 +0300)
Modifying test_rgw_iam_policy.cc to avoid C++23
compilation errors. C++23 does not allow int-to-string
conversions, and '0' cannot be returned where a string
is expected.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/test/rgw/test_rgw_iam_policy.cc

index d31c7aa4295e8652637cde766b2a834f28aca11d..7dadb7812ffb7582ef731f9465217612d4503e3c 100644 (file)
@@ -173,12 +173,12 @@ public:
 
   string get_acct_name() const override {
     abort();
-    return 0;
+    return string{};
   }
 
   string get_subuser() const override {
     abort();
-    return 0;
+    return string{};
   }
 
   const std::string& get_tenant() const override {