[Libreoffice-commits] core.git: include/basegfx

Stephan Bergmann sbergman at redhat.com
Fri Oct 16 03:05:49 PDT 2015


 include/basegfx/vector/b2ivector.hxx |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

New commits:
commit 901f6da81b5006d33d7ad1f97b70f4c60708d609
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Oct 16 12:05:06 2015 +0200

    Let operator<< be found via ADL
    
    Change-Id: I590ebb954ec249668a62c0c0a8959422af08485e

diff --git a/include/basegfx/vector/b2ivector.hxx b/include/basegfx/vector/b2ivector.hxx
index 9c5b516..e8fac19 100644
--- a/include/basegfx/vector/b2ivector.hxx
+++ b/include/basegfx/vector/b2ivector.hxx
@@ -139,14 +139,14 @@ namespace basegfx
     */
     BASEGFX_DLLPUBLIC B2IVector operator*( const B2DHomMatrix& rMat, const B2IVector& rVec );
 
-} // end of namespace basegfx
+    template< typename charT, typename traits >
+    inline std::basic_ostream<charT, traits> & operator <<(
+        std::basic_ostream<charT, traits> & stream, const basegfx::B2IVector& vector )
+    {
+        return stream << "(" << vector.getX() << "," << vector.getY() << ")";
+    }
 
-template< typename charT, typename traits >
-inline std::basic_ostream<charT, traits> & operator <<(
-    std::basic_ostream<charT, traits> & stream, const basegfx::B2IVector& vector )
-{
-    return stream << "(" << vector.getX() << "," << vector.getY() << ")";
-}
+} // end of namespace basegfx
 
 #endif // INCLUDED_BASEGFX_VECTOR_B2IVECTOR_HXX
 


More information about the Libreoffice-commits mailing list