<html>
    <head>
      <base href="https://bugs.documentfoundation.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:michael.meeks@collabora.com" title="Michael Meeks <michael.meeks@collabora.com>"> <span class="fn">Michael Meeks</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Adapt uses of css::uno::Sequence to use initializer_list ctor"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=88205">bug 88205</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>michael.meeks@collabora.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Adapt uses of css::uno::Sequence to use initializer_list ctor"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=88205#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Adapt uses of css::uno::Sequence to use initializer_list ctor"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=88205">bug 88205</a>
              from <span class="vcard"><a class="email" href="mailto:michael.meeks@collabora.com" title="Michael Meeks <michael.meeks@collabora.com>"> <span class="fn">Michael Meeks</span></a>
</span></b>
        <pre>As Stephan says that's really great for the getSupportedServiceNames cases: a
quick:

$ git grep -5 getSupportedServiceNames

shows you a load of these places (when you get through accessibility) where we
can turn two or often three lines into one like this:

 css::uno::Sequence< OUString >
 BridgeFactory::static_getSupportedServiceNames() {
-    OUString name("com.sun.star.bridge.BridgeFactory");
-    return css::uno::Sequence< OUString >(&name, 1);
+    return css::uno::Sequence<OUString>{ "com.sun.star.bridge.BridgeFactory"
};
 }

Then again - it's not clear to me that this wouldn't produce rather more
efficient code with a var-arg method that took C strings =) but at least far
more terse.

Thanks !</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>