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;
_______________________________________________
LibreOffice mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to