@@ -93,10 +93,10 @@ void printDataFileMeta(bsl::ostream& ostream,
9393{
9494 BSLS_ASSERT_SAFE (dataFile_p && dataFile_p->isValid ());
9595
96- const bsl::vector<const char * > fields = {" BlazingMQ File Header" ,
96+ const bsl::vector<bsl::string > fields = {" BlazingMQ File Header" ,
9797 " Data File Header" };
9898
99- PRINTER_TYPE1 printer (ostream, & fields);
99+ PRINTER_TYPE1 printer (ostream, fields);
100100 {
101101 bmqu::MemOutStream s (allocator);
102102 s << ' \n ' ;
@@ -123,11 +123,11 @@ void printJournalFileMeta(bsl::ostream& ostream,
123123{
124124 BSLS_ASSERT_SAFE (journalFile_p && journalFile_p->isValid ());
125125
126- const bsl::vector<const char * > fields = {" BlazingMQ File Header" ,
126+ const bsl::vector<bsl::string > fields = {" BlazingMQ File Header" ,
127127 " Journal File Header" ,
128128 " Journal SyncPoint" };
129129
130- PRINTER_TYPE1 printer (ostream, & fields);
130+ PRINTER_TYPE1 printer (ostream, fields);
131131 {
132132 bmqu::MemOutStream s (allocator);
133133 s << ' \n ' ;
@@ -152,7 +152,7 @@ void printJournalFileMeta(bsl::ostream& ostream,
152152 s << ' \n ' ;
153153 {
154154 // Print journal-specific fields
155- bsl::vector<const char * > fieldsSyncPoint (allocator);
155+ bsl::vector<bsl::string > fieldsSyncPoint (allocator);
156156 fieldsSyncPoint.reserve (12 );
157157 fieldsSyncPoint.push_back (" Last Valid Record Offset" );
158158 fieldsSyncPoint.push_back (" Record Type" );
@@ -167,7 +167,7 @@ void printJournalFileMeta(bsl::ostream& ostream,
167167 fieldsSyncPoint.push_back (" SyncPoint DataFileOffset (DWORDS)" );
168168 fieldsSyncPoint.push_back (" SyncPoint QlistFileOffset (WORDS)" );
169169
170- PRINTER_TYPE2 p (s, & fieldsSyncPoint);
170+ PRINTER_TYPE2 p (s, fieldsSyncPoint);
171171 bsls::Types::Uint64 lastRecPos =
172172 journalFile_p->lastRecordPosition ();
173173 p << lastRecPos;
@@ -253,7 +253,7 @@ void printQueueDetails(bsl::ostream& ostream,
253253 const bsl::size_t appKeysCount = details.d_appDetailsMap .size ();
254254
255255 // Setup fields to be displayed
256- bsl::vector<const char * > fields (allocator);
256+ bsl::vector<bsl::string > fields (allocator);
257257 fields.reserve (8 );
258258 fields.push_back (" Queue Key" );
259259 if (!details.d_queueUri .empty ()) {
@@ -269,7 +269,7 @@ void printQueueDetails(bsl::ostream& ostream,
269269 fields.push_back (" Num Delete Records" );
270270
271271 {
272- PRINTER_TYPE printer (ostream, & fields);
272+ PRINTER_TYPE printer (ostream, fields);
273273
274274 // Print Queue Key id: either Key or URI
275275 printer << queueKey;
@@ -576,13 +576,13 @@ void HumanReadablePrinter::printQueueOpSummary(
576576 d_ostream << " \n Total number of queueOp records: "
577577 << queueOpRecordsCount << ' \n ' ;
578578
579- bsl::vector<const char * > fields (d_allocator_p);
579+ bsl::vector<bsl::string > fields (d_allocator_p);
580580 fields.reserve (4 );
581581 fields.push_back (" Number of 'purge' operations" );
582582 fields.push_back (" Number of 'creation' operations" );
583583 fields.push_back (" Number of 'deletion' operations" );
584584 fields.push_back (" Number of 'addition' operations" );
585- bmqu::AlignedPrinter printer (d_ostream, & fields);
585+ bmqu::AlignedPrinter printer (d_ostream, fields);
586586 printer << queueOpCountsVec[mqbs::QueueOpType::e_PURGE]
587587 << queueOpCountsVec[mqbs::QueueOpType::e_CREATION]
588588 << queueOpCountsVec[mqbs::QueueOpType::e_DELETION]
@@ -899,15 +899,15 @@ void JsonPrinter::printQueueOpSummary(
899899{
900900 BSLS_ASSERT_SAFE (queueOpCountsVec.size () > mqbs::QueueOpType::e_ADDITION);
901901 closeBraceIfOpen ();
902- bsl::vector<const char * > fields (d_allocator_p);
902+ bsl::vector<bsl::string > fields (d_allocator_p);
903903 fields.reserve (5 );
904904 fields.push_back (" TotalQueueOperationsNumber" );
905905 fields.push_back (" PurgeOperationsNumber" );
906906 fields.push_back (" CreationOperationsNumber" );
907907 fields.push_back (" DeletionOperationsNumber" );
908908 fields.push_back (" AdditionOperationsNumber" );
909909
910- bmqu::JsonPrinter<true , false , 0 , 2 > printer (d_ostream, & fields);
910+ bmqu::JsonPrinter<true , false , 0 , 2 > printer (d_ostream, fields);
911911 printer << queueOpRecordsCount
912912 << queueOpCountsVec[mqbs::QueueOpType::e_PURGE]
913913 << queueOpCountsVec[mqbs::QueueOpType::e_CREATION]
0 commit comments