@@ -434,14 +434,14 @@ void CSkinFile::DrawPreview(CDC* pDC, CRect rect)
434434 draw_str.value = _T (" 99" );
435435 break ;
436436 }
437- if (m_skin_info.display_text .Get (*iter) == NONE_STR)
438- m_skin_info.display_text .Get (*iter) = theApp.m_main_wnd_data .disp_str .Get (*iter);
437+ if (m_skin_info.display_text .GetConst (*iter) == NONE_STR)
438+ m_skin_info.display_text .Get (*iter) = theApp.m_main_wnd_data .disp_str .GetConst (*iter);
439439 if (!m_layout_info.no_label )
440440 {
441441 if (m_skin_info.display_text .IsInvalid ())
442442 draw_str.label = DispStrings::DefaultString (*iter, true ).c_str ();
443443 else
444- draw_str.label = m_skin_info.display_text .Get (*iter).c_str ();
444+ draw_str.label = m_skin_info.display_text .GetConst (*iter).c_str ();
445445 }
446446 map_str[*iter] = draw_str;
447447 }
@@ -520,7 +520,7 @@ void CSkinFile::DrawPreview(CDC* pDC, CRect rect)
520520 if (m_skin_info.display_text .IsInvalid ())
521521 draw_str.label = plugin_item->GetItemLableText ();
522522 else
523- draw_str.label = m_skin_info.display_text .Get (plugin_item).c_str ();
523+ draw_str.label = m_skin_info.display_text .GetConst (plugin_item).c_str ();
524524 draw_str.value = plugin_item->GetItemValueSampleText ();
525525 DrawSkinText (draw, draw_str, rect, cl, layout_item.align );
526526 }
@@ -609,19 +609,19 @@ void CSkinFile::DrawItemsInfo(IDrawCommon& drawer, Layout& layout, CFont& font)
609609 std::map<DisplayItem, DrawStr> map_str;
610610 if (!m_layout_info.no_label )
611611 {
612- map_str[TDI_UP].label = theApp.m_main_wnd_data .disp_str .Get (TDI_UP).c_str ();
613- map_str[TDI_DOWN].label = theApp.m_main_wnd_data .disp_str .Get (TDI_DOWN).c_str ();
614- map_str[TDI_TOTAL_SPEED].label = theApp.m_main_wnd_data .disp_str .Get (TDI_TOTAL_SPEED).c_str ();
615- map_str[TDI_CPU].label = theApp.m_main_wnd_data .disp_str .Get (TDI_CPU).c_str ();
616- map_str[TDI_MEMORY].label = theApp.m_main_wnd_data .disp_str .Get (TDI_MEMORY).c_str ();
617- map_str[TDI_GPU_USAGE].label = theApp.m_main_wnd_data .disp_str .Get (TDI_GPU_USAGE).c_str ();
618- map_str[TDI_HDD_USAGE].label = theApp.m_main_wnd_data .disp_str .Get (TDI_HDD_USAGE).c_str ();
619- map_str[TDI_CPU_TEMP].label = theApp.m_main_wnd_data .disp_str .Get (TDI_CPU_TEMP).c_str ();
620- map_str[TDI_CPU_FREQ].label = theApp.m_main_wnd_data .disp_str .Get (TDI_CPU_FREQ).c_str ();
621- map_str[TDI_GPU_TEMP].label = theApp.m_main_wnd_data .disp_str .Get (TDI_GPU_TEMP).c_str ();
622- map_str[TDI_HDD_TEMP].label = theApp.m_main_wnd_data .disp_str .Get (TDI_HDD_TEMP).c_str ();
623- map_str[TDI_MAIN_BOARD_TEMP].label = theApp.m_main_wnd_data .disp_str .Get (TDI_MAIN_BOARD_TEMP).c_str ();
624- map_str[TDI_TODAY_TRAFFIC].label = theApp.m_main_wnd_data .disp_str .Get (TDI_TODAY_TRAFFIC).c_str ();
612+ map_str[TDI_UP].label = theApp.m_main_wnd_data .disp_str .GetConst (TDI_UP).c_str ();
613+ map_str[TDI_DOWN].label = theApp.m_main_wnd_data .disp_str .GetConst (TDI_DOWN).c_str ();
614+ map_str[TDI_TOTAL_SPEED].label = theApp.m_main_wnd_data .disp_str .GetConst (TDI_TOTAL_SPEED).c_str ();
615+ map_str[TDI_CPU].label = theApp.m_main_wnd_data .disp_str .GetConst (TDI_CPU).c_str ();
616+ map_str[TDI_MEMORY].label = theApp.m_main_wnd_data .disp_str .GetConst (TDI_MEMORY).c_str ();
617+ map_str[TDI_GPU_USAGE].label = theApp.m_main_wnd_data .disp_str .GetConst (TDI_GPU_USAGE).c_str ();
618+ map_str[TDI_HDD_USAGE].label = theApp.m_main_wnd_data .disp_str .GetConst (TDI_HDD_USAGE).c_str ();
619+ map_str[TDI_CPU_TEMP].label = theApp.m_main_wnd_data .disp_str .GetConst (TDI_CPU_TEMP).c_str ();
620+ map_str[TDI_CPU_FREQ].label = theApp.m_main_wnd_data .disp_str .GetConst (TDI_CPU_FREQ).c_str ();
621+ map_str[TDI_GPU_TEMP].label = theApp.m_main_wnd_data .disp_str .GetConst (TDI_GPU_TEMP).c_str ();
622+ map_str[TDI_HDD_TEMP].label = theApp.m_main_wnd_data .disp_str .GetConst (TDI_HDD_TEMP).c_str ();
623+ map_str[TDI_MAIN_BOARD_TEMP].label = theApp.m_main_wnd_data .disp_str .GetConst (TDI_MAIN_BOARD_TEMP).c_str ();
624+ map_str[TDI_TODAY_TRAFFIC].label = theApp.m_main_wnd_data .disp_str .GetConst (TDI_TODAY_TRAFFIC).c_str ();
625625 }
626626
627627 // 上传/下载
@@ -741,7 +741,7 @@ void CSkinFile::DrawItemsInfo(IDrawCommon& drawer, Layout& layout, CFont& font)
741741
742742 // 绘制文本
743743 DrawStr draw_str;
744- draw_str.label = theApp.m_main_wnd_data .disp_str .Get (plugin_item).c_str ();
744+ draw_str.label = theApp.m_main_wnd_data .disp_str .GetConst (plugin_item).c_str ();
745745 draw_str.value = plugin_item->GetItemValueText ();
746746 DrawSkinText (drawer, draw_str, rect, cl, layout_item.align );
747747 }
0 commit comments