From 095954fe8c0d1a64d8696d0ad0cd0ed395dd6c54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 15 Jul 2022 00:50:32 +0200 Subject: Change declaration style. --- c/common.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'c/common.cpp') diff --git a/c/common.cpp b/c/common.cpp index 93f97eb..bcc5fd0 100644 --- a/c/common.cpp +++ b/c/common.cpp @@ -6,8 +6,7 @@ #include "defs.h" /* Convert normal string to TSTR using given codepage. */ -TCHAR * -TszFromSz(const char *sz, int iCp) +TCHAR *TszFromSz(const char *sz, int iCp) { TCHAR *tsz; @@ -40,14 +39,12 @@ Library::~Library() FreeLibrary(m_hModule); } -FARPROC -Library::GetProcAddress(const char *szProc) +FARPROC Library::GetProcAddress(const char *szProc) { return m_hModule? ::GetProcAddress(m_hModule, szProc): NULL; } -std::unique_ptr -Library::Load(const TCHAR *tszLibrary) +std::unique_ptr Library::Load(const TCHAR *tszLibrary) { auto upLib = std::make_unique(tszLibrary); if (!upLib->m_hModule) upLib = nullptr; -- cgit v1.2.3