summaryrefslogtreecommitdiff
path: root/dtrans/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-12-05 09:55:56 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-12-05 13:31:39 +0100
commit55e596956e56b175ab17b682e7c8ac7daeb9289a (patch)
tree3691e2f43d50019b5e0f0e0145714afb13bcc685 /dtrans/source
parent6a10149c5fef13721e3f83727a828556f8e1ec9a (diff)
loplugin:external (clang-cl)
...plus loplugin:consttobool and loplugin:fakebool fallout Change-Id: Ie3d8121815c080b13bea6d9deca1eb138ca56138 Reviewed-on: https://gerrit.libreoffice.org/84515 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'dtrans/source')
-rw-r--r--dtrans/source/win32/clipb/MtaOleClipb.cxx4
-rw-r--r--dtrans/source/win32/dtobj/FmtFilter.cxx4
-rw-r--r--dtrans/source/win32/ftransl/ftransl.cxx3
3 files changed, 10 insertions, 1 deletions
diff --git a/dtrans/source/win32/clipb/MtaOleClipb.cxx b/dtrans/source/win32/clipb/MtaOleClipb.cxx
index fc8a16d86d0c..de966c3978c3 100644
--- a/dtrans/source/win32/clipb/MtaOleClipb.cxx
+++ b/dtrans/source/win32/clipb/MtaOleClipb.cxx
@@ -173,6 +173,8 @@ static HRESULT UnmarshalIDataObjectAndReleaseStream( LPSTREAM lpStream, IDataObj
// helper class to ensure that the calling thread has com initialized
+namespace {
+
class CAutoComInit
{
public:
@@ -214,6 +216,8 @@ private:
HRESULT m_hResult;
};
+}
+
// ctor
CMtaOleClipboard::CMtaOleClipboard( ) :
diff --git a/dtrans/source/win32/dtobj/FmtFilter.cxx b/dtrans/source/win32/dtobj/FmtFilter.cxx
index 2130c42ba578..6b0d9c0ba30f 100644
--- a/dtrans/source/win32/dtobj/FmtFilter.cxx
+++ b/dtrans/source/win32/dtobj/FmtFilter.cxx
@@ -36,6 +36,8 @@
using namespace com::sun::star::uno;
+namespace {
+
#pragma pack(2)
struct METAFILEHEADER
{
@@ -48,6 +50,8 @@ struct METAFILEHEADER
};
#pragma pack()
+}
+
// convert a windows metafile picture to a LibreOffice metafile picture
Sequence< sal_Int8 > WinMFPictToOOMFPict( Sequence< sal_Int8 >& aMetaFilePict )
diff --git a/dtrans/source/win32/ftransl/ftransl.cxx b/dtrans/source/win32/ftransl/ftransl.cxx
index 4cc1897059a3..bd189b890f99 100644
--- a/dtrans/source/win32/ftransl/ftransl.cxx
+++ b/dtrans/source/win32/ftransl/ftransl.cxx
@@ -56,7 +56,6 @@ namespace
Sequence< OUString > aRet { "com.sun.star.datatransfer.DataFormatTranslator" };
return aRet;
}
-}
struct FormatEntry
{
@@ -73,6 +72,8 @@ struct FormatEntry
sal_Int32 aStandardFormatId;
};
+}
+
FormatEntry::FormatEntry(
const char *mime_content_type,
const char *human_presentable_name,