From 44986c79769d4efc2badc5b9c3df2e75e81ac28e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 29 Sep 2022 12:41:07 +0100 Subject: Use auto instead of type names where the type is obvious. --- src/logging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/logging.cpp') diff --git a/src/logging.cpp b/src/logging.cpp index 279584577..c1f030615 100644 --- a/src/logging.cpp +++ b/src/logging.cpp @@ -117,7 +117,7 @@ Log::MethodPtr Log::FileEngine::Create(std::shared_ptr tag) throw CoreException(" must be specified for file logger at " + tag->source.str()); const std::string fulltarget = ServerInstance->Config->Paths.PrependLog(InspIRCd::TimeString(ServerInstance->Time(), target.c_str())); - FILE* fh = fopen(fulltarget.c_str(), "a"); + auto fh = fopen(fulltarget.c_str(), "a"); if (!fh) { throw CoreException(InspIRCd::Format("Unable to open %s for file logger at %s: %s", -- cgit v1.3.1-10-gc9f91