• R/O
  • HTTP
  • SSH
  • HTTPS

GVONavish: Commit

大航海時代Onlineのプレイを少しだけ助けてくれるツール。


Commit MetaInfo

Revision51a05c99627b43f5d19a4ab54075004019d4a179 (tree)
Time2014-03-13 21:50:57
AuthorMandhelingFreak <mandheling30-freak@yaho...>
CommiterMandhelingFreak

Log Message

整理。

Change Summary

Incremental Difference

--- a/GVONavish/GVONavish/GVOShipRoute.h
+++ b/GVONavish/GVONavish/GVOShipRoute.h
@@ -15,9 +15,6 @@ private:
1515 bool m_hilight = false;
1616 bool m_fixed = false; //!<@brief 航路固定フラグ
1717
18- std::time_t m_earliestDateTime = std::time_t();
19- std::time_t m_latestDateTime = std::time_t();
20-
2118 public:
2219 GVOShipRoute() = default;
2320 ~GVOShipRoute() = default;
@@ -83,34 +80,6 @@ public:
8380 return m_length;
8481 }
8582
86- std::time_t earliestDateTime() const
87- {
88- return m_earliestDateTime;
89- }
90-
91- // ちょっと汚いかなー
92- void setEarliestDateTime( const std::time_t dateTime )
93- {
94- m_earliestDateTime = dateTime;
95- }
96-
97- // ちょっと汚いかなー
98- std::time_t latestDateTime() const
99- {
100- return m_latestDateTime;
101- }
102-
103- // ちょっと汚いかなー
104- void setLatestDateTime( const std::time_t dateTime )
105- {
106- m_latestDateTime = dateTime;
107- }
108-
109- // ちょっと汚いかなー
110- void addLine( Line & line )
111- {
112- m_lines.push_back( line );
113- }
11483 void addLine( Line && line )
11584 {
11685 m_lines.push_back( line );
--- a/GVONavish/GVONavish/GVOShipRouteList.cpp
+++ b/GVONavish/GVONavish/GVOShipRouteList.cpp
@@ -31,12 +31,6 @@ std::ostream & operator <<(std::ostream & os, const GVOShipRouteList & shipRoute
3131 if ( shipRoute->isFavorite() ) {
3232 ++fileHeader.favoritsCount;
3333
34- std::time_t dateTime = std::time_t();
35- dateTime = shipRoute->earliestDateTime();
36- os.write( reinterpret_cast<const char *>(&dateTime), sizeof(dateTime) );
37- dateTime = shipRoute->latestDateTime();
38- os.write( reinterpret_cast<const char *>(&dateTime), sizeof(dateTime) );
39-
4034 const size_t lineCount = shipRoute->getLines().size();
4135 os.write( reinterpret_cast<const char *>(&lineCount), sizeof(lineCount) );
4236
@@ -81,12 +75,6 @@ std::istream & operator >>(std::istream & is, GVOShipRouteList & shipRouteList)
8175 GVOShipRoutePtr shipRoute( new GVOShipRoute() );
8276 shipRoute->setFavorite( true );
8377
84- std::time_t dateTime = std::time_t();
85- is.read( reinterpret_cast<char *>(&dateTime), sizeof(dateTime) );
86- shipRoute->setEarliestDateTime( dateTime );
87- is.read( reinterpret_cast<char *>(&dateTime), sizeof(dateTime) );
88- shipRoute->setLatestDateTime( dateTime );
89-
9078 size_t lineCount = 0;
9179 is.read( reinterpret_cast<char *>(&lineCount), sizeof(lineCount) );
9280
Show on old repository browser