compact namespace in sal..svgio

Change-Id: I7e70614ea5a1cb1a1dc0ef8e9fb6fd48e85c3562
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93904
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2020-05-10 09:18:09 +02:00
parent 366d08f2f6
commit c37fe8886d
24 changed files with 45 additions and 45 deletions

View File

@@ -15,12 +15,12 @@
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <sal/types.h> #include <sal/types.h>
namespace osl { namespace detail { namespace osl::detail {
/// Build a debugging backtrace from current PC location. /// Build a debugging backtrace from current PC location.
OUString backtraceAsString(sal_uInt32 maxDepth); OUString backtraceAsString(sal_uInt32 maxDepth);
} } }
#endif // INCLUDED_SAL_INC_INTERNAL_MISC_H #endif // INCLUDED_SAL_INC_INTERNAL_MISC_H

View File

@@ -14,11 +14,11 @@
#include <osl/file.h> #include <osl/file.h>
namespace osl { namespace detail { namespace osl::detail {
oslFileHandle createFileHandleFromFD(int fd); // defined in file.cxx oslFileHandle createFileHandleFromFD(int fd); // defined in file.cxx
} } }
#endif #endif

View File

@@ -35,7 +35,7 @@ int UnicodeToText(char * buffer, size_t bufLen, const sal_Unicode * uniText, sal
int TextToUnicode(const char* text, size_t text_buffer_size, sal_Unicode* unic_text, sal_Int32 unic_text_buffer_size); int TextToUnicode(const char* text, size_t text_buffer_size, sal_Unicode* unic_text, sal_Int32 unic_text_buffer_size);
namespace osl { namespace detail { namespace osl::detail {
oslFileError convertUrlToPathname(rtl::OUString const & url, rtl::OString * pathname); oslFileError convertUrlToPathname(rtl::OUString const & url, rtl::OString * pathname);
@@ -43,7 +43,7 @@ oslFileError convertPathnameToUrl(rtl::OString const & pathname, rtl::OUString *
bool find_in_PATH(const rtl::OUString& file_path, rtl::OUString& result); bool find_in_PATH(const rtl::OUString& file_path, rtl::OUString& result);
} } }
#endif #endif

View File

@@ -21,7 +21,7 @@ BOOL TimeValueToFileTime(TimeValue const * cpTimeVal, FILETIME * pFTime);
BOOL FileTimeToTimeValue(FILETIME const * cpFTime, TimeValue * pTimeVal); BOOL FileTimeToTimeValue(FILETIME const * cpFTime, TimeValue * pTimeVal);
namespace osl { namespace detail { namespace osl::detail {
inline __int64 getFiletime(FILETIME const & ft) { inline __int64 getFiletime(FILETIME const & ft) {
return (DWORD64(ft.dwHighDateTime) << 32) | ft.dwLowDateTime; return (DWORD64(ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
@@ -32,7 +32,7 @@ inline void setFiletime(FILETIME & ft, __int64 value) {
ft.dwLowDateTime = value & 0xFFFFFFFF; ft.dwLowDateTime = value & 0xFFFFFFFF;
} }
} } }
#endif #endif

View File

@@ -26,7 +26,7 @@
// Internal, non-stable ABI // Internal, non-stable ABI
namespace sal { namespace detail { namespace textenc { namespace sal::detail::textenc {
enum BadInputConversionAction enum BadInputConversionAction
{ {
@@ -46,7 +46,7 @@ handleBadInputUnicodeToTextConversion(
const char * pDestBufEnd, sal_uInt32 * pInfo, char const * pPrefix, const char * pDestBufEnd, sal_uInt32 * pInfo, char const * pPrefix,
sal_Size nPrefixLen, bool * pPrefixWritten); sal_Size nPrefixLen, bool * pPrefixWritten);
} } } }
#endif #endif

View File

@@ -17,7 +17,7 @@
// Internal, non-stable ABI // Internal, non-stable ABI
namespace sal { namespace detail { namespace textenc { namespace sal::detail::textenc {
sal_Size SAL_DLLPUBLIC convertCharToUnicode( sal_Size SAL_DLLPUBLIC convertCharToUnicode(
void const * pData, void * pContext, char const * pSrcBuf, void const * pData, void * pContext, char const * pSrcBuf,
@@ -29,6 +29,6 @@ sal_Size SAL_DLLPUBLIC convertUnicodeToChar(
sal_Size nSrcChars, char * pDestBuf, sal_Size nDestBytes, sal_uInt32 nFlags, sal_Size nSrcChars, char * pDestBuf, sal_Size nDestBytes, sal_uInt32 nFlags,
sal_uInt32 * pInfo, sal_Size * pSrcCvtChars); sal_uInt32 * pInfo, sal_Size * pSrcCvtChars);
} } } }
#endif #endif

View File

@@ -29,7 +29,7 @@
/// @HTML /// @HTML
namespace rtl { namespace textenc { namespace rtl::textenc {
/** /**
Maps a range of BMP Unicode code points to individual bytes. Maps a range of BMP Unicode code points to individual bytes.
@@ -93,7 +93,7 @@ struct BmpUnicodeToSingleByteConverterData {
BmpUnicodeToSingleByteRange const * unicodeToByte; BmpUnicodeToSingleByteRange const * unicodeToByte;
}; };
} } }
/** /**
Function to convert from a single-byte character set to BMP Unicode. Function to convert from a single-byte character set to BMP Unicode.

View File

@@ -17,7 +17,7 @@
// Internal, non-stable ABI // Internal, non-stable ABI
namespace sal { namespace detail { namespace textenc { namespace sal::detail::textenc {
// True means "continue," false means "break:" // True means "continue," false means "break:"
bool SAL_DLLPUBLIC handleUndefinedUnicodeToTextChar( bool SAL_DLLPUBLIC handleUndefinedUnicodeToTextChar(
@@ -25,6 +25,6 @@ bool SAL_DLLPUBLIC handleUndefinedUnicodeToTextChar(
char ** ppDestBuf, char const * pEndDestBuf, sal_uInt32 nFlags, char ** ppDestBuf, char const * pEndDestBuf, sal_uInt32 nFlags,
sal_uInt32 * pInfo); sal_uInt32 * pInfo);
} } } }
#endif #endif

View File

@@ -31,7 +31,7 @@ namespace com::sun::star::beans { class XPropertySet; }
namespace com::sun::star::uno { class XComponentContext; } namespace com::sun::star::uno { class XComponentContext; }
namespace com::sun::star::util { class XNumberFormatter2; } namespace com::sun::star::util { class XNumberFormatter2; }
namespace sca { namespace analysis { namespace sca::analysis {
class ScaAnyConverter; class ScaAnyConverter;
@@ -904,7 +904,7 @@ public:
sal_Int32 nDefault ); sal_Int32 nDefault );
}; };
} } }
#endif #endif

View File

@@ -29,7 +29,7 @@
#include <com/sun/star/script/provider/XScriptProvider.hpp> #include <com/sun/star/script/provider/XScriptProvider.hpp>
namespace com { namespace sun { namespace star { namespace com::sun::star {
namespace document { namespace document {
class XScriptInvocationContext; class XScriptInvocationContext;
@@ -55,7 +55,7 @@ namespace com { namespace sun { namespace star {
namespace util { namespace util {
struct URL; struct URL;
} }
} } } }
namespace scripting_protocolhandler namespace scripting_protocolhandler
{ {

View File

@@ -15,7 +15,7 @@
#include <org/freedesktop/PackageKit/SyncDbusSessionHelper.hpp> #include <org/freedesktop/PackageKit/SyncDbusSessionHelper.hpp>
#include <cppuhelper/implbase.hxx> #include <cppuhelper/implbase.hxx>
namespace shell { namespace sessioninstall namespace shell::sessioninstall
{ {
class SyncDbusSessionHelper : public ::cppu::WeakImplHelper< ::org::freedesktop::PackageKit::XSyncDbusSessionHelper > class SyncDbusSessionHelper : public ::cppu::WeakImplHelper< ::org::freedesktop::PackageKit::XSyncDbusSessionHelper >
{ {
@@ -54,7 +54,7 @@ namespace shell { namespace sessioninstall
SyncDbusSessionHelper( const SyncDbusSessionHelper& ) = delete; SyncDbusSessionHelper( const SyncDbusSessionHelper& ) = delete;
SyncDbusSessionHelper& operator=( const SyncDbusSessionHelper& ) = delete; SyncDbusSessionHelper& operator=( const SyncDbusSessionHelper& ) = delete;
}; };
}} }
#endif // INCLUDED_SHELL_SOURCE_SESSIONINSTALL_SYNCDBUSSESSIONHELPER_HXX #endif // INCLUDED_SHELL_SOURCE_SESSIONINSTALL_SYNCDBUSSESSIONHELPER_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -42,7 +42,7 @@ class SfxPrinter;
class Printer; class Printer;
class SmCursor; class SmCursor;
namespace oox { namespace formulaimport { class XmlStream; } } namespace oox::formulaimport { class XmlStream; }
#define STAROFFICE_XML "StarOffice XML (Math)" #define STAROFFICE_XML "StarOffice XML (Math)"
#define MATHML_XML "MathML XML (Math)" #define MATHML_XML "MathML XML (Math)"

View File

@@ -31,7 +31,7 @@
#include <types.hxx> #include <types.hxx>
#include <memory> #include <memory>
namespace com { namespace sun { namespace star { namespace uno { template <class E> class Sequence; } } } } namespace com::sun::star::uno { template <class E> class Sequence; }
class SmSym; class SmSym;
class SmSymbolManager; class SmSymbolManager;

View File

@@ -26,12 +26,12 @@
class SfxMedium; class SfxMedium;
class SmNode; class SmNode;
class SmVerticalBraceNode; class SmVerticalBraceNode;
namespace com { namespace sun { namespace star { namespace com::sun::star {
namespace io { namespace io {
class XOutputStream; } class XOutputStream; }
namespace beans { namespace beans {
class XPropertySet; } class XPropertySet; }
} } } }
class SmXMLExportWrapper class SmXMLExportWrapper

View File

@@ -28,10 +28,10 @@
class SmNode; class SmNode;
class SfxMedium; class SfxMedium;
namespace com { namespace sun { namespace star { namespace com::sun::star {
namespace beans { namespace beans {
class XPropertySet; } class XPropertySet; }
} } } }
typedef std::deque<std::unique_ptr<SmNode>> SmNodeStack; typedef std::deque<std::unique_ptr<SmNode>> SmNodeStack;

View File

@@ -12,7 +12,7 @@
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
namespace oox { namespace formulaimport { class XmlStream; } } namespace oox::formulaimport { class XmlStream; }
/** /**
Class implementing reading of formulas from OOXML. The toplevel element is expected Class implementing reading of formulas from OOXML. The toplevel element is expected
to be oMath (handle oMathPara outside of this code). to be oMath (handle oMathPara outside of this code).

View File

@@ -23,9 +23,9 @@
#include <sal/config.h> #include <sal/config.h>
#include <sal/types.h> #include <sal/types.h>
namespace com { namespace sun { namespace star { namespace registry { namespace com::sun::star::registry {
class XRegistryKey; class XRegistryKey;
} } } } }
namespace com::sun::star::uno { template <typename > class Reference; } namespace com::sun::star::uno { template <typename > class Reference; }
namespace stoc_impreg { namespace stoc_impreg {

View File

@@ -26,9 +26,9 @@
#include <cppuhelper/implbase.hxx> #include <cppuhelper/implbase.hxx>
#include <rtl/ref.hxx> #include <rtl/ref.hxx>
namespace com { namespace sun { namespace star { namespace task { namespace com::sun::star::task {
class XInteractionContinuation; class XInteractionContinuation;
} } } } }
namespace stoc_javavm { namespace stoc_javavm {

View File

@@ -34,10 +34,10 @@
#include <rtl/ref.hxx> #include <rtl/ref.hxx>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
namespace com { namespace sun { namespace star { namespace com::sun::star {
namespace container { class XContainer; } namespace container { class XContainer; }
namespace uno { class XComponentContext; } namespace uno { class XComponentContext; }
} } } }
namespace jvmaccess { namespace jvmaccess {
class UnoVirtualMachine; class UnoVirtualMachine;
class VirtualMachine; class VirtualMachine;

View File

@@ -25,7 +25,7 @@
#include <sal/types.h> #include <sal/types.h>
#include <rtl/ustrbuf.hxx> #include <rtl/ustrbuf.hxx>
namespace stoc { namespace uriproc { namespace stoc::uriproc {
class UriReference { class UriReference {
public: public:
@@ -104,7 +104,7 @@ private:
void appendSchemeSpecificPart(OUStringBuffer & buffer) const; void appendSchemeSpecificPart(OUStringBuffer & buffer) const;
}; };
} } }
#endif #endif

View File

@@ -22,7 +22,7 @@
#include "svgnode.hxx" #include "svgnode.hxx"
namespace drawinglayer { namespace primitive2d { class TextSimplePortionPrimitive2D; }} namespace drawinglayer::primitive2d { class TextSimplePortionPrimitive2D; }
namespace svgio namespace svgio
{ {

View File

@@ -24,7 +24,7 @@
#include "svgdocument.hxx" #include "svgdocument.hxx"
#include <cppuhelper/implbase.hxx> #include <cppuhelper/implbase.hxx>
namespace svgio { namespace svgreader { class SvgCharacterNode; }} namespace svgio::svgreader { class SvgCharacterNode; }
namespace svgio namespace svgio
{ {

View File

@@ -29,13 +29,13 @@
// predefines // predefines
namespace svgio { namespace svgreader { namespace svgio::svgreader {
class SvgGradientNode; class SvgGradientNode;
class SvgPatternNode; class SvgPatternNode;
class SvgMarkerNode; class SvgMarkerNode;
class SvgClipPathNode; class SvgClipPathNode;
class SvgMaskNode; class SvgMaskNode;
}} }
namespace svgio namespace svgio

View File

@@ -25,14 +25,14 @@
#include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/uno/Sequence.hxx> #include <com/sun/star/uno/Sequence.hxx>
namespace com { namespace sun { namespace star { namespace com::sun::star {
namespace uno { namespace uno {
class XComponentContext; class XComponentContext;
class XInterface; class XInterface;
} }
} } } }
namespace svgio { namespace svgreader { namespace svgio::svgreader {
css::uno::Reference< css::uno::XInterface > css::uno::Reference< css::uno::XInterface >
XSvgParser_createInstance( css::uno::Reference< css::uno::XComponentContext > const &); XSvgParser_createInstance( css::uno::Reference< css::uno::XComponentContext > const &);
@@ -42,7 +42,7 @@ OUString XSvgParser_getImplementationName();
css::uno::Sequence< OUString > css::uno::Sequence< OUString >
XSvgParser_getSupportedServiceNames(); XSvgParser_getSupportedServiceNames();
} } }
#endif #endif