@@ -86,8 +86,8 @@ std::vector<std::string> Tokenize(const std::string& aString) {
8686 return std::vector<std::string>(it, end);
8787}
8888
89- static const std::string TruncateRecordId = " truncate-record-id" ;
90- static const std::string TruncateRecordData = " I will soon be truncated" ;
89+ static const char TruncateRecordId[] = " truncate-record-id" ;
90+ static const char TruncateRecordData[] = " I will soon be truncated" ;
9191
9292template <class Continuation >
9393class WriteRecordSuccessTask {
@@ -225,7 +225,7 @@ class VerifyAndOverwriteContinuation : public ReadContinuation {
225225 const std::string mTestID ;
226226};
227227
228- static const std::string OpenAgainRecordId = " open-again-record-id" ;
228+ static const char OpenAgainRecordId[] = " open-again-record-id" ;
229229
230230class OpenedSecondTimeContinuation : public OpenContinuation {
231231 public:
@@ -390,7 +390,6 @@ class ReportReadRecordContinuation : public ReadContinuation {
390390enum ShutdownMode { ShutdownNormal, ShutdownTimeout, ShutdownStoreToken };
391391
392392static ShutdownMode sShutdownMode = ShutdownNormal;
393- static std::string sShutdownToken ;
394393
395394void FakeDecryptor::UpdateSession (uint32_t aPromiseId, const char * aSessionId,
396395 uint32_t aSessionIdLength,
@@ -421,8 +420,7 @@ void FakeDecryptor::UpdateSession(uint32_t aPromiseId, const char* aSessionId,
421420 sShutdownMode = ShutdownTimeout;
422421 } else if (mode == " token" ) {
423422 sShutdownMode = ShutdownStoreToken;
424- sShutdownToken = tokens[2 ];
425- Message (" shutdown-token received " + sShutdownToken );
423+ Message (" shutdown-token received " + tokens[2 ]);
426424 }
427425 } else if (task == " retrieve-shutdown-token" ) {
428426 ReadRecord (FakeDecryptor::sInstance ->mHost , " shutdown-token" ,
0 commit comments