Kaydet (Commit) e19a21ad authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:external (macOS)

Change-Id: Ib06572a844d2999e9ecd91e26abd98ecec06a0ae
Reviewed-on: https://gerrit.libreoffice.org/60665
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 738bcd23
......@@ -402,7 +402,7 @@ const int codeSnippetSize = 24;
// Note: The code snippet we build here must not create a stack frame,
// otherwise the UNO exceptions stop working thanks to non-existing
// unwinding info.
unsigned char * codeSnippet( unsigned char * code,
static unsigned char * codeSnippet( unsigned char * code,
sal_Int32 nFunctionIndex, sal_Int32 nVtableOffset,
bool bHasHiddenParam )
{
......
......@@ -284,7 +284,7 @@ static bool findDataStream(NSFileHandle *file, CentralDirectoryEntry *entry, NSS
return true;
}
NSData *getUncompressedData(NSFileHandle *file, NSString *name)
static NSData *getUncompressedData(NSFileHandle *file, NSString *name)
{
CentralDirectoryEntry entry;
if (!findDataStream(file, &entry, name))
......
......@@ -64,11 +64,11 @@ typedef struct
// Forward declaration for the IUnknown implementation.
//
MetadataImporterPluginType *AllocMetadataImporterPluginType(CFUUIDRef inFactoryID);
void DeallocMetadataImporterPluginType(MetadataImporterPluginType *thisInstance);
HRESULT MetadataImporterQueryInterface(void *thisInstance,REFIID iid,LPVOID *ppv);
ULONG MetadataImporterPluginAddRef(void *thisInstance);
ULONG MetadataImporterPluginRelease(void *thisInstance);
static MetadataImporterPluginType *AllocMetadataImporterPluginType(CFUUIDRef inFactoryID);
static void DeallocMetadataImporterPluginType(MetadataImporterPluginType *thisInstance);
static HRESULT MetadataImporterQueryInterface(void *thisInstance,REFIID iid,LPVOID *ppv);
static ULONG MetadataImporterPluginAddRef(void *thisInstance);
static ULONG MetadataImporterPluginRelease(void *thisInstance);
// testInterfaceFtbl definition
// The TestInterface function table.
//
......
......@@ -75,7 +75,7 @@ Entry const CtrlIdToResIdTable[] = {
const sal_Int32 SIZE_TABLE = SAL_N_ELEMENTS( CtrlIdToResIdTable );
const char* CtrlIdToResId(sal_Int32 aControlId)
static const char* CtrlIdToResId(sal_Int32 aControlId)
{
const char *pResId = nullptr;
......@@ -93,7 +93,7 @@ const char* CtrlIdToResId(sal_Int32 aControlId)
namespace CResourceProvider_Impl
{
NSString* getResString(sal_Int16 aId)
static NSString* getResString(sal_Int16 aId)
{
OUString aResString;
......
......@@ -485,7 +485,7 @@ Reference< XSpellAlternatives > SAL_CALL
}
/// @throws Exception
Reference< XInterface > MacSpellChecker_CreateInstance(
static Reference< XInterface > MacSpellChecker_CreateInstance(
const Reference< XMultiServiceFactory > & /*rSMgr*/ )
{
......
......@@ -156,7 +156,7 @@ MacOSXBackend* MacOSXBackend::createInstance()
return new MacOSXBackend;
}
rtl::OUString CFStringToOUString(const CFStringRef sOrig) {
static rtl::OUString CFStringToOUString(const CFStringRef sOrig) {
CFRetain(sOrig);
CFIndex nStringLen = CFStringGetLength(sOrig)+1;
......@@ -171,7 +171,7 @@ rtl::OUString CFStringToOUString(const CFStringRef sOrig) {
return rtl::OUString::createFromAscii(sBuffer);
}
rtl::OUString GetOUString( NSString* pStr )
static rtl::OUString GetOUString( NSString* pStr )
{
if( ! pStr )
return rtl::OUString();
......
......@@ -54,12 +54,12 @@ NSView* DragSource::g_DragSourceView = nil;
bool DragSource::g_DropSuccessSet = false;
bool DragSource::g_DropSuccess = false;
OUString dragSource_getImplementationName()
static OUString dragSource_getImplementationName()
{
return OUString("com.sun.star.comp.datatransfer.dnd.OleDragSource_V1");
}
Sequence<OUString> dragSource_getSupportedServiceNames()
static Sequence<OUString> dragSource_getSupportedServiceNames()
{
return { OUString("com.sun.star.datatransfer.dnd.OleDragSource") };
}
......
......@@ -44,12 +44,12 @@ using namespace com::sun::star::uno;
using namespace com::sun::star;
using namespace comphelper;
OUString dropTarget_getImplementationName()
static OUString dropTarget_getImplementationName()
{
return OUString("com.sun.star.comp.datatransfer.dnd.OleDropTarget_V1");
}
Sequence<OUString> dropTarget_getSupportedServiceNames()
static Sequence<OUString> dropTarget_getSupportedServiceNames()
{
return { OUString("com.sun.star.datatransfer.dnd.OleDropTarget") };
}
......
......@@ -35,7 +35,7 @@ using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::uno;
NSString * getTableNotification( const AccessibleEventObject& aEvent )
static NSString * getTableNotification( const AccessibleEventObject& aEvent )
{
AccessibleTableModelChange aChange;
NSString * notification = nil;
......
......@@ -972,7 +972,7 @@ static std::ostream &operator<<(std::ostream &s, NSObject *obj) {
return hit;
}
Reference < XAccessibleContext > hitTestRunner ( css::awt::Point point,
static Reference < XAccessibleContext > hitTestRunner ( css::awt::Point point,
Reference < XAccessibleContext > const & rxAccessibleContext ) {
Reference < XAccessibleContext > hitChild;
Reference < XAccessibleContext > emptyReference;
......
......@@ -66,12 +66,12 @@ using namespace comphelper;
@end
OUString clipboard_getImplementationName()
static OUString clipboard_getImplementationName()
{
return OUString("com.sun.star.datatransfer.clipboard.AquaClipboard");
}
Sequence<OUString> clipboard_getSupportedServiceNames()
static Sequence<OUString> clipboard_getSupportedServiceNames()
{
return { OUString("com.sun.star.datatransfer.clipboard.SystemClipboard") };
}
......
......@@ -40,7 +40,7 @@
#include <sallayout.hxx>
#include <hb-coretext.h>
inline double toRadian(int nDegree)
static inline double toRadian(int nDegree)
{
return nDegree * (M_PI / 1800.0);
}
......
......@@ -696,7 +696,7 @@ const aImplSalSysPalEntryAry[ 16 ] =
{ 0xFF, 0xFF, 0xFF }
};
const BitmapPalette& GetDefaultPalette( int mnBits, bool bMonochrome )
static const BitmapPalette& GetDefaultPalette( int mnBits, bool bMonochrome )
{
if( bMonochrome )
return Bitmap::GetGreyPalette( 1U << mnBits );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment