From 353b0750b081042e7b8c12bc20da00acc76f4e32 Mon Sep 17 00:00:00 2001 From: Stuart Campbell Date: Sat, 15 Nov 2014 11:35:38 -0500 Subject: [PATCH] Added static_casts to make C+11 compliant --- applications/NXtranslate/spec/spec_retriever.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/applications/NXtranslate/spec/spec_retriever.cpp b/applications/NXtranslate/spec/spec_retriever.cpp index 5d0c1c33..bc54e8fe 100644 --- a/applications/NXtranslate/spec/spec_retriever.cpp +++ b/applications/NXtranslate/spec/spec_retriever.cpp @@ -600,7 +600,7 @@ void SpecRetriever::getData(const string &location, tree &tr){ // //prepare dimensions for storing refill mode // - const int dims[1]={strlen(refill)}; + const int dims[1]={static_cast(strlen(refill))}; // //store refill mode item in the place in hierarchy from where it was invoked // @@ -626,7 +626,7 @@ void SpecRetriever::getData(const string &location, tree &tr){ // //prepare dimension parameter for storing time of refill information // - const int dims[1]={strlen(refill)}; + const int dims[1]={static_cast(strlen(refill))}; // //store refill time in the place from invoked // @@ -738,7 +738,7 @@ void SpecRetriever::getData(const string &location, tree &tr){ scan_group.replace(13,5,number); - const int dims[1]={strlen(result)}; + const int dims[1]={static_cast(strlen(result))}; // //store just read data in the place from invoked // @@ -753,7 +753,7 @@ void SpecRetriever::getData(const string &location, tree &tr){ break; //it will never go here } if(scan_number!=0){ - const int dims[1]={strlen(result)}; + const int dims[1]={static_cast(strlen(result))}; // //store just read data in the place from invoked // @@ -814,7 +814,7 @@ void SpecRetriever::auto_translation(tree &t){ // //dimensions of file name // - const int dims_file[1]={strlen(result)}; + const int dims_file[1]={static_cast(strlen(result))}; // //store file name in the user group // @@ -830,7 +830,7 @@ void SpecRetriever::auto_translation(tree &t){ // //dimensions of userId // - const int dims_id[1]={strlen(result)}; + const int dims_id[1]={static_cast(strlen(result))}; // //store user Id in the user group // @@ -1010,7 +1010,7 @@ void SpecRetriever::auto_translation(tree &t){ cout<<" Date of scan "<(strlen(result))}; // //go to the scan //