OSDN Git Service

Remove unnecessary .c_str() calls
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sun, 16 Jun 2019 15:39:57 +0000 (00:39 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sun, 16 Jun 2019 15:39:57 +0000 (00:39 +0900)
Src/DirCmpReport.cpp
Src/MainFrm.cpp

index 407ab5a..5813524 100644 (file)
@@ -440,13 +440,13 @@ void DirCmpReport::GenerateXmlHeader()
        WriteString(_T("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n")
                                _T("<WinMergeDiffReport version=\"2\">\n")
                                _T("<left>"));
-       WriteStringEntityAware(m_rootPaths.GetLeft().c_str());
+       WriteStringEntityAware(m_rootPaths.GetLeft());
        WriteString(_T("</left>\n")
                                _T("<right>"));
-       WriteStringEntityAware(m_rootPaths.GetRight().c_str());
+       WriteStringEntityAware(m_rootPaths.GetRight());
        WriteString(_T("</right>\n")
                                _T("<time>"));
-       WriteStringEntityAware(GetCurrentTimeString().c_str());
+       WriteStringEntityAware(GetCurrentTimeString());
        WriteString(_T("</time>\n"));
 
        // Add column headers
index f7b460e..c550577 100644 (file)
@@ -1789,7 +1789,7 @@ void CMainFrame::OnFileOpenProject()
        // store this as the new project path
        GetOptionsMgr()->SaveOption(OPT_PROJECTS_PATH, strProjectPath);
 
-       theApp.LoadAndOpenProjectFile(sFilepath.c_str());
+       theApp.LoadAndOpenProjectFile(sFilepath);
 }
 
 /**