summaryrefslogtreecommitdiff
path: root/protocols/Weather/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-01-24 12:06:07 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-01-24 12:06:07 +0300
commitc19cad516f8fdbc01f9ced10947ecb1865dbda5e (patch)
tree2694dd74e174dafe1e571ea15be6aeb894401011 /protocols/Weather/src
parent5f811a30c9d5c991329bc5a1c242fbec40694ec4 (diff)
CCtrlMButton: default values for constructor parameters
Diffstat (limited to 'protocols/Weather/src')
-rw-r--r--protocols/Weather/src/weather_opt.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/protocols/Weather/src/weather_opt.cpp b/protocols/Weather/src/weather_opt.cpp
index 9dc6aafba2..0865da1518 100644
--- a/protocols/Weather/src/weather_opt.cpp
+++ b/protocols/Weather/src/weather_opt.cpp
@@ -326,14 +326,14 @@ public:
CWeatherDlgBase(ppro, IDD_TEXTOPT),
btnMore(this, IDC_MORE, 0, 0),
btnReset(this, IDC_RESET, 0, 0),
- tm1(this, IDC_TM1, 0, 0),
- tm2(this, IDC_TM2, 0, 0),
- tm3(this, IDC_TM3, 0, 0),
- tm4(this, IDC_TM4, 0, 0),
- tm5(this, IDC_TM5, 0, 0),
- tm6(this, IDC_TM6, 0, 0),
- tm7(this, IDC_TM7, 0, 0),
- tm8(this, IDC_TM8, 0, 0)
+ tm1(this, IDC_TM1),
+ tm2(this, IDC_TM2),
+ tm3(this, IDC_TM3),
+ tm4(this, IDC_TM4),
+ tm5(this, IDC_TM5),
+ tm6(this, IDC_TM6),
+ tm7(this, IDC_TM7),
+ tm8(this, IDC_TM8)
{
btnMore.OnClick = Callback(this, &COptionsTextDlg::onClick_More);
btnReset.OnClick = Callback(this, &COptionsTextDlg::onClick_Reset);
@@ -407,7 +407,7 @@ public:
{
// show the preview in a message box, using the weather data from the default station
WEATHERINFO winfo = m_proto->LoadWeatherInfo(m_proto->opt.DefStn);
- wchar_t buf[2] = { var.c, 0 }, str[4096];
+ wchar_t buf[3] = { '%', var.c, 0}, str[4096];
GetDisplay(&winfo, buf, str);
MessageBox(nullptr, str, TranslateT("Weather Protocol Text Preview"), MB_OK | MB_TOPMOST);
}