Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


gcc (Debian 4.7.2-5) 4.7.2 on debian-wheezy just choked on
sfx2/source/control/querystatus.cxx ...

    /home/terry/lo_hacking/git/libo2/sfx2/source/control/querystatus.cxx: In member function 
‘virtual void SfxQueryStatus_Impl::statusChanged(const com::sun::star::frame::FeatureStateEvent&)’:
    /home/terry/lo_hacking/git/libo2/sfx2/source/control/querystatus.cxx:138:41: error: ‘<::’ 
cannot begin a template-argument list [-fpermissive]
    /home/terry/lo_hacking/git/libo2/sfx2/source/control/querystatus.cxx:138:41: note: ‘<:’ is an 
alternate spelling for ‘[’. Insert whitespace between ‘<’ and ‘::’
    /home/terry/lo_hacking/git/libo2/sfx2/source/control/querystatus.cxx:138:41: note: (if you use 
‘-fpermissive’ G++ will accept your code)
    /home/terry/lo_hacking/git/libo2/sfx2/source/control/querystatus.cxx:145:41: error: ‘<::’ 
cannot begin a template-argument list [-fpermissive]
    /home/terry/lo_hacking/git/libo2/sfx2/source/control/querystatus.cxx:145:41: note: ‘<:’ is an 
alternate spelling for ‘[’. Insert whitespace between ‘<’ and ‘::’

Wow, aren't triglyphs fun?  It is years since I last thought about
them.

With the change as per attached diff, the build is continuing.

HTH,
Terry

diff --git a/sfx2/source/control/querystatus.cxx b/sfx2/source/control/querystatus.cxx
index f9fa487..04e91f0 100644
--- a/sfx2/source/control/querystatus.cxx
+++ b/sfx2/source/control/querystatus.cxx
@@ -135,14 +135,14 @@ throw( RuntimeException, std::exception )
             rEvent.State >>= sTemp ;
             m_pItem = new SfxStringItem( m_nSlotID, sTemp );
         }
-        else if ( pType == cppu::UnoType<::com::sun::star::frame::status::ItemStatus>::get() )
+        else if ( pType == cppu::UnoType< ::com::sun::star::frame::status::ItemStatus>::get() )
         {
             ItemStatus aItemStatus;
             rEvent.State >>= aItemStatus;
             m_eState = aItemStatus.State;
             m_pItem = new SfxVoidItem( m_nSlotID );
         }
-        else if ( pType == cppu::UnoType<::com::sun::star::frame::status::Visibility>::get() )
+        else if ( pType == cppu::UnoType< ::com::sun::star::frame::status::Visibility>::get() )
         {
             Visibility aVisibilityStatus;
             rEvent.State >>= aVisibilityStatus;

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.