diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 16:20:12 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 16:20:39 +0100 |
commit | d1775349e4ea619aa7b634bcd7161374107038a1 (patch) | |
tree | 300c60723c49ec7601f6ac886f37805b5afa0a6a /vcl/osx/clipboard.cxx | |
parent | aa4d195143fec01fba5c0a0f41950f1cbddbc9bd (diff) |
loplugin:nullptr (automatic rewrite; Mac-specific code)
Change-Id: I90a955eb3e485723bb81e7164edcf60f7b0e94c7
Diffstat (limited to 'vcl/osx/clipboard.cxx')
-rw-r--r-- | vcl/osx/clipboard.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/osx/clipboard.cxx b/vcl/osx/clipboard.cxx index e674b74e95a9..d57e4bcf01cb 100644 --- a/vcl/osx/clipboard.cxx +++ b/vcl/osx/clipboard.cxx @@ -61,7 +61,7 @@ using namespace comphelper; -(void)disposing { - pAquaClipboard = NULL; + pAquaClipboard = nullptr; } @end @@ -86,7 +86,7 @@ AquaClipboard::AquaClipboard(NSPasteboard* pasteboard, bool bUseSystemPasteboard mpDataFlavorMapper = DataFlavorMapperPtr_t(new DataFlavorMapper()); - if (pasteboard != NULL) + if (pasteboard != nullptr) { mPasteboard = pasteboard; mIsSystemPasteboard = false; @@ -289,9 +289,9 @@ void AquaClipboard::provideDataForType(NSPasteboard* sender, const NSString* typ if( mXClipboardContent.is() ) { DataProviderPtr_t dp = mpDataFlavorMapper->getDataProvider(type, mXClipboardContent); - NSData* pBoardData = NULL; + NSData* pBoardData = nullptr; - if (dp.get() != NULL) + if (dp.get() != nullptr) { pBoardData = (NSData*)dp->getSystemData(); [sender setData: pBoardData forType:const_cast<NSString*>(type)]; @@ -312,7 +312,7 @@ void SAL_CALL AquaClipboard::flushClipboard() { const NSString* sysType = mpDataFlavorMapper->openOfficeToSystemFlavor(flavorList[i], bInternal); - if (sysType != NULL) + if (sysType != nullptr) { provideDataForType(mPasteboard, sysType); } |