• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

MIDITrail をピカピカにする。鍵盤方向自動切替・多ポート・歌詞対応等


Commit MetaInfo

Revision03255163f4a2701a8400f3e040ab5d26ad7c5b3e (tree)
Time2018-04-11 18:28:50
Authoryoshy <yoshy@user...>
Commiteryoshy

Log Message

Merge branch 'develop' into master/yossiepon

Change Summary

Incremental Difference

--- a/SMIDILib/SMEventMeta.cpp
+++ b/SMIDILib/SMEventMeta.cpp
@@ -13,6 +13,12 @@
1313 #include "SMEventMeta.h"
1414 #include <new>
1515
16+// >>> add 20170528 yossiepon begin
17+#include <algorithm>
18+#include <functional>
19+#include <cctype>
20+// <<< add 20170528 yossiepon end
21+
1622 using namespace YNBaseLib;
1723
1824 namespace SMIDILib {
@@ -127,6 +133,12 @@ int SMEventMeta::GetText(
127133
128134 *pText = pBuf;
129135
136+// >>> add 20170528 yossiepon begin
137+ // rtrim
138+ pText->erase(std::find_if(pText->rbegin(), pText->rend(),
139+ std::not1(std::ptr_fun<int, int>(std::isspace))).base(), pText->end());
140+// <<< add 20170528 yossiepon end
141+
130142 EXIT:;
131143 delete [] pBuf;
132144 return result;
--- a/SMIDILib/SMSeqData.cpp
+++ b/SMIDILib/SMSeqData.cpp
@@ -427,6 +427,12 @@ const char* SMSeqData::GetCopyRight()
427427 //******************************************************************************
428428 const char* SMSeqData::GetTitle()
429429 {
430+// >>> add 20170528 yossiepon begin
431+ if (m_Title.length() == 0) {
432+ return m_FileName.c_str();
433+ }
434+// <<< add 20170528 yossiepon end
435+
430436 return m_Title.c_str();
431437 }
432438