fixincludeguards.pl: handle odk/examples
Now we have nice example header guards ;) Change-Id: I1a5f8031cf267abf67dc4fbb20880d23e3640867
This commit is contained in:
parent
a7eae9c280
commit
e0f08c06aa
@ -28,7 +28,7 @@ for fn in "$@"; do
|
||||
|
||||
# global header in include/ top level dir:
|
||||
# drop the project dir
|
||||
fnfixed=`echo $fn | sed 's/include\///g'`
|
||||
fnfixed=`echo $fn | sed 's/\(include\|odk\/examples\/cpp\)\///g'`
|
||||
|
||||
# convert file path to header guard
|
||||
guard=`echo "$fnfixed" | sed 's/[\/\.-]/_/g' | tr 'a-z' 'A-Z'`
|
||||
|
@ -17,6 +17,9 @@
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
#ifndef INCLUDED_COMPLEXTOOLBARCONTROLS_LISTENERHELPER_H
|
||||
#define INCLUDED_COMPLEXTOOLBARCONTROLS_LISTENERHELPER_H
|
||||
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
@ -77,4 +80,6 @@ public:
|
||||
virtual void SAL_CALL disposing( const com::sun::star::lang::EventObject& aEvent ) throw (com::sun::star::uno::RuntimeException);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
@ -17,8 +17,8 @@
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
#ifndef _MyJob_HXX
|
||||
#define _MyJob_HXX
|
||||
#ifndef INCLUDED_COMPLEXTOOLBARCONTROLS_MYJOB_H
|
||||
#define INCLUDED_COMPLEXTOOLBARCONTROLS_MYJOB_H
|
||||
|
||||
#include <com/sun/star/task/XJob.hpp>
|
||||
#include <com/sun/star/lang/XServiceInfo.hpp>
|
||||
|
@ -17,8 +17,8 @@
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
#ifndef _MyListener_HXX
|
||||
#define _MyListener_HXX
|
||||
#ifndef INCLUDED_COMPLEXTOOLBARCONTROLS_MYLISTENER_H
|
||||
#define INCLUDED_COMPLEXTOOLBARCONTROLS_MYLISTENER_H
|
||||
|
||||
#include <com/sun/star/lang/XServiceInfo.hpp>
|
||||
#include <com/sun/star/task/XJob.hpp>
|
||||
@ -108,6 +108,6 @@ class WriterListener : public cppu::WeakImplHelper1< css::document::XEventListen
|
||||
throw (css::uno::RuntimeException);
|
||||
};
|
||||
|
||||
#endif // _MyListener_HXX
|
||||
#endif
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
@ -17,8 +17,8 @@
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
#ifndef _MyProtocolHandler_HXX
|
||||
#define _MyProtocolHandler_HXX
|
||||
#ifndef INCLUDED_COMPLEXTOOLBARCONTROLS_MYPROTOCOLHANDLER_H
|
||||
#define INCLUDED_COMPLEXTOOLBARCONTROLS_MYPROTOCOLHANDLER_H
|
||||
|
||||
#include <com/sun/star/awt/XToolkit2.hpp>
|
||||
#include <com/sun/star/beans/NamedValue.hpp>
|
||||
|
Loading…
x
Reference in New Issue
Block a user