Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Side by Side Diff: fpdfsdk/src/pdfwindow/PWL_Note.cpp

Issue 726143002: Remove FX_LPCWSTR cast to wchar_t* literals (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/src/javascript/util.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "../../include/pdfwindow/PDFWindow.h" 7 #include "../../include/pdfwindow/PDFWindow.h"
8 #include "../../include/pdfwindow/PWL_Wnd.h" 8 #include "../../include/pdfwindow/PWL_Wnd.h"
9 #include "../../include/pdfwindow/PWL_Button.h" 9 #include "../../include/pdfwindow/PWL_Button.h"
10 #include "../../include/pdfwindow/PWL_EditCtrl.h" 10 #include "../../include/pdfwindow/PWL_EditCtrl.h"
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 } 858 }
859 this->SetSubjectName(sSubject); 859 this->SetSubjectName(sSubject);
860 this->RePosChildWnd(); 860 this->RePosChildWnd();
861 } 861 }
862 862
863 void CPWL_NoteItem::SetDateTime(FX_SYSTEMTIME time) 863 void CPWL_NoteItem::SetDateTime(FX_SYSTEMTIME time)
864 { 864 {
865 m_dtNote = time; 865 m_dtNote = time;
866 866
867 CFX_WideString swTime; 867 CFX_WideString swTime;
868 » swTime.Format((FX_LPCWSTR)L"%04d-%02d-%02d %02d:%02d:%02d", time.wYear, time.wMonth, time.wDay, time.wHour, time.wMinute, time.wSecond); 868 » swTime.Format(L"%04d-%02d-%02d %02d:%02d:%02d", time.wYear, time.wMonth, time.wDay, time.wHour, time.wMinute, time.wSecond);
869 if (m_pDateTime) 869 if (m_pDateTime)
870 { 870 {
871 m_pDateTime->SetText(swTime); 871 m_pDateTime->SetText(swTime);
872 } 872 }
873 873
874 this->RePosChildWnd(); 874 this->RePosChildWnd();
875 875
876 if (IPWL_NoteNotify* pNotify = GetNoteNotify()) 876 if (IPWL_NoteNotify* pNotify = GetNoteNotify())
877 { 877 {
878 pNotify->OnSetDateTime(this); 878 pNotify->OnSetDateTime(this);
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
1769 CFX_WideString CPWL_Note::GetReplyString() const 1769 CFX_WideString CPWL_Note::GetReplyString() const
1770 { 1770 {
1771 return m_sReplyString; 1771 return m_sReplyString;
1772 } 1772 }
1773 1773
1774 void CPWL_Note::SetReplyString(const CFX_WideString& string) 1774 void CPWL_Note::SetReplyString(const CFX_WideString& string)
1775 { 1775 {
1776 m_sReplyString = string; 1776 m_sReplyString = string;
1777 } 1777 }
1778 1778
OLDNEW
« no previous file with comments | « fpdfsdk/src/javascript/util.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698