http://lists.freedesktop.org/archives/libreoffice/2012-April/029940.html The RTL_USING #define (set by gbuild for anything that's not public API) allows to use such classes simply by their name, without having to use the namespace or do explicit using rtl::OUString (which half of the sources do anyway). Change-Id: I7edaf12cd278489cdc1d5ff782f0a86361c13c0a
31 lines
1.1 KiB
C++
31 lines
1.1 KiB
C++
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
/*
|
|
* This file is part of the LibreOffice project.
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
// The whole purpose of this test is to check that public cppuhelper/ headers
|
|
// build even without RTL_USING (which enables using e.g. rtl::OUString
|
|
// without to refer to the rtl namespace, which is not wanted
|
|
// in public API). If there are build errors here, check the headers
|
|
// for uses of such types.
|
|
|
|
#ifdef RTL_USING
|
|
#error Build system problem, RTL_USING using should not be set here.
|
|
#endif
|
|
|
|
#include "cppuhelper_allheaders.hxx"
|
|
|
|
// This module contains no tests, this is for the build system.
|
|
#include <cppunit/plugin/TestPlugIn.h>
|
|
CPPUNIT_PLUGIN_IMPLEMENT();
|
|
extern "C" SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL firstfunc( sal_Bool bRes )
|
|
{
|
|
return ( bRes = sal_True );
|
|
}
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|