Skip to content

Commit a72773a

Browse files
committed
Reflection: Use \n instead of std::endl
1 parent 2a44b33 commit a72773a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

stdlib/public/Reflection/MetadataSource.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,5 @@ void MetadataSource::dump() const {
112112

113113
void MetadataSource::dump(std::ostream &OS, unsigned Indent) const {
114114
PrintMetadataSource(OS, Indent).visit(this);
115-
OS << std::endl;
115+
OS << '\n';
116116
}

stdlib/public/SwiftRemoteMirror/SwiftRemoteMirror.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ int swift_reflection_project_existential(SwiftReflectionContextRef ContextRef,
233233
void swift_reflection_dumpTypeRef(swift_typeref_t OpaqueTypeRef) {
234234
auto TR = reinterpret_cast<const TypeRef *>(OpaqueTypeRef);
235235
if (TR == nullptr) {
236-
std::cerr << "<null type reference>" << std::endl;
236+
std::cerr << "<null type reference>\n";
237237
} else {
238238
TR->dump();
239239
}
@@ -244,7 +244,7 @@ void swift_reflection_dumpInfoForMetadata(SwiftReflectionContextRef ContextRef,
244244
auto Context = reinterpret_cast<NativeReflectionContext *>(ContextRef);
245245
auto TI = Context->getInstanceTypeInfo(Metadata);
246246
if (TI == nullptr) {
247-
std::cerr << "<null type info>" << std::endl;
247+
std::cerr << "<null type info>\n";
248248
} else {
249249
TI->dump();
250250
}
@@ -256,7 +256,7 @@ void swift_reflection_dumpInfoForTypeRef(SwiftReflectionContextRef ContextRef,
256256
auto TR = reinterpret_cast<const TypeRef *>(OpaqueTypeRef);
257257
auto TI = Context->getTypeInfo(TR);
258258
if (TI == nullptr) {
259-
std::cerr << "<null type info>" << std::endl;
259+
std::cerr << "<null type info>\n";
260260
} else {
261261
TI->dump();
262262
}

0 commit comments

Comments
 (0)