<html>
    <head>
      <base href="https://bugs.documentfoundation.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - EasyHack: Clean up default arguments in uses of C++ unordered containers"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=97499">97499</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>EasyHack: Clean up default arguments in uses of C++ unordered containers
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sbergman@redhat.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>libreoffice@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The standard C++ unordered containers (like std::unordered_map) have additional
template parameters Hash and Pred that default to std::hash<Key> and
std::equal_to<Key>, respectively.

So these can be removed where they are redundantly specified in the code base,
as in

<span class="quote">> --- a/include/comphelper/numberedcollection.hxx
> +++ b/include/comphelper/numberedcollection.hxx
> @@ -61,9 +61,7 @@ class COMPHELPER_DLLPUBLIC NumberedCollection : private ::cppu::BaseMutex
>  
>          typedef std::unordered_map<
>                      long,
> -                    TNumberedItem,
> -                    ::std::hash<long>,
> -                    ::std::equal_to< long > > TNumberedItemHash;
> +                    TNumberedItem > TNumberedItemHash;
>  
>          typedef ::std::vector< long > TDeadItemList;</span >
></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>