summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--canvas/source/directx/dx_canvashelper.cxx2
-rw-r--r--connectivity/source/drivers/ado/ADriver.cxx2
-rw-r--r--dtrans/source/win32/dtobj/FmtFilter.cxx8
-rw-r--r--extensions/source/ole/unoconversionutilities.hxx2
-rw-r--r--sal/osl/all/log.cxx2
-rw-r--r--sal/osl/w32/procimpl.cxx2
-rw-r--r--shell/source/win32/shlxthandler/infotips/infotips.cxx2
-rw-r--r--vcl/win/gdi/winlayout.cxx2
-rw-r--r--winaccessibility/source/service/msaaservice_impl.cxx3
9 files changed, 12 insertions, 13 deletions
diff --git a/canvas/source/directx/dx_canvashelper.cxx b/canvas/source/directx/dx_canvashelper.cxx
index 0db0f187d595..d606aab9a621 100644
--- a/canvas/source/directx/dx_canvashelper.cxx
+++ b/canvas/source/directx/dx_canvashelper.cxx
@@ -147,7 +147,7 @@ namespace dxcanvas
if( needOutput() )
{
GraphicsSharedPtr pGraphics( mpGraphicsProvider->getGraphics() );
- Gdiplus::Color aClearColor = Gdiplus::Color(Gdiplus::ARGB(Gdiplus::Color::White));
+ Gdiplus::Color aClearColor{Gdiplus::ARGB(Gdiplus::Color::White)};
ENSURE_OR_THROW(
Gdiplus::Ok == pGraphics->SetCompositingMode(
diff --git a/connectivity/source/drivers/ado/ADriver.cxx b/connectivity/source/drivers/ado/ADriver.cxx
index eae5ee686996..c19df1794285 100644
--- a/connectivity/source/drivers/ado/ADriver.cxx
+++ b/connectivity/source/drivers/ado/ADriver.cxx
@@ -260,7 +260,7 @@ void ADOS::ThrowException(ADOConnection* _pAdoCon,const Reference< XInterface >&
aException = SQLException(aErr.GetDescription(),_xInterface,aErr.GetSQLState(),aErr.GetNumber(),Any());
else
{
- SQLException aTemp = SQLException(aErr.GetDescription(),
+ SQLException aTemp(aErr.GetDescription(),
_xInterface,aErr.GetSQLState(),aErr.GetNumber(),makeAny(aException));
aTemp.NextException <<= aException;
aException = aTemp;
diff --git a/dtrans/source/win32/dtobj/FmtFilter.cxx b/dtrans/source/win32/dtobj/FmtFilter.cxx
index 007d04ac08c5..2130c42ba578 100644
--- a/dtrans/source/win32/dtobj/FmtFilter.cxx
+++ b/dtrans/source/win32/dtobj/FmtFilter.cxx
@@ -227,13 +227,13 @@ static std::string GetHtmlFormatHeader(size_t startHtml, size_t endHtml, size_t
// the case of these tags has to match what we output in our filters
// both tags don't allow parameters
-const std::string TAG_HTML = std::string("<html>");
-const std::string TAG_END_HTML = std::string("</html>");
+const std::string TAG_HTML("<html>");
+const std::string TAG_END_HTML("</html>");
// The body tag may have parameters so we need to search for the
// closing '>' manually e.g. <body param> #92840#
-const std::string TAG_BODY = std::string("<body");
-const std::string TAG_END_BODY = std::string("</body");
+const std::string TAG_BODY("<body");
+const std::string TAG_END_BODY("</body");
Sequence<sal_Int8> TextHtmlToHTMLFormat(Sequence<sal_Int8> const & aTextHtml)
{
diff --git a/extensions/source/ole/unoconversionutilities.hxx b/extensions/source/ole/unoconversionutilities.hxx
index 5e4a96a2ef0d..0fffbaacb695 100644
--- a/extensions/source/ole/unoconversionutilities.hxx
+++ b/extensions/source/ole/unoconversionutilities.hxx
@@ -1661,7 +1661,7 @@ Any UnoConversionUtilities<T>::createOleObjectWrapper(VARIANT* pVar, const Type&
spDispatch2.QueryInterface( & spUnknown.p);
}
- static Type VOID_TYPE= Type();
+ static Type VOID_TYPE;
Any ret;
//If no Type is provided and pVar contains IUnknown then we return a XInterface.
//If pVar contains an IDispatch then we return a XInvocation.
diff --git a/sal/osl/all/log.cxx b/sal/osl/all/log.cxx
index 94aef6b17d24..5a6ffdff9110 100644
--- a/sal/osl/all/log.cxx
+++ b/sal/osl/all/log.cxx
@@ -96,7 +96,7 @@ char const* setEnvFromLoggingIniFile(const char* env, const char* key)
char const* sResult = nullptr;
wchar_t buffer[MAX_PATH];
GetModuleFileNameW(nullptr, buffer, MAX_PATH);
- std::wstring sProgramDirectory = std::wstring(buffer);
+ std::wstring sProgramDirectory(buffer);
std::wstring::size_type pos = sProgramDirectory.find_last_of(L"\\/");
sProgramDirectory = sProgramDirectory.substr(0, pos+1);
sProgramDirectory += L"logging.ini";
diff --git a/sal/osl/w32/procimpl.cxx b/sal/osl/w32/procimpl.cxx
index 9f0595395dad..27212eec17d5 100644
--- a/sal/osl/w32/procimpl.cxx
+++ b/sal/osl/w32/procimpl.cxx
@@ -128,7 +128,7 @@ namespace /* private */
for (sal_uInt32 i = 0; i < env_vars_count; i++)
{
- OUString env_var = OUString(env_vars[i]);
+ OUString env_var(env_vars[i]);
if (env_var.getLength() == 0)
return false;
diff --git a/shell/source/win32/shlxthandler/infotips/infotips.cxx b/shell/source/win32/shlxthandler/infotips/infotips.cxx
index e87e42997099..aa061eb25490 100644
--- a/shell/source/win32/shlxthandler/infotips/infotips.cxx
+++ b/shell/source/win32/shlxthandler/infotips/infotips.cxx
@@ -36,7 +36,7 @@
#define MAX_STRING 80
#define KB 1024.0
-const std::wstring WSPACE = std::wstring(SPACE);
+const std::wstring WSPACE(SPACE);
CInfoTip::CInfoTip(long RefCnt) :
diff --git a/vcl/win/gdi/winlayout.cxx b/vcl/win/gdi/winlayout.cxx
index 25949dc0692e..b67f191c0b47 100644
--- a/vcl/win/gdi/winlayout.cxx
+++ b/vcl/win/gdi/winlayout.cxx
@@ -432,7 +432,7 @@ bool WinSalGraphics::DrawCachedGlyphs(const GenericSalLayout& rLayout)
rLayout.GetBoundRect(aRect);
COLORREF color = GetTextColor(hDC);
- Color salColor = Color(GetRValue(color), GetGValue(color), GetBValue(color));
+ Color salColor(GetRValue(color), GetGValue(color), GetBValue(color));
WinOpenGLSalGraphicsImpl *pImpl = dynamic_cast<WinOpenGLSalGraphicsImpl*>(mpImpl.get());
if (!pImpl)
diff --git a/winaccessibility/source/service/msaaservice_impl.cxx b/winaccessibility/source/service/msaaservice_impl.cxx
index 1025b597c08c..89b5d9a4a0d7 100644
--- a/winaccessibility/source/service/msaaservice_impl.cxx
+++ b/winaccessibility/source/service/msaaservice_impl.cxx
@@ -253,8 +253,7 @@ static Reference< XInterface > create_MSAAServiceImpl( Reference< XComponentCont
MSAAServiceImpl::MSAAServiceImpl()
{
- Reference< XExtendedToolkit > xToolkit =
- Reference< XExtendedToolkit >(Application::GetVCLToolkit(), UNO_QUERY);
+ Reference< XExtendedToolkit > xToolkit(Application::GetVCLToolkit(), UNO_QUERY);
if( xToolkit.is() )
{