Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
colorEagleStdio
qplanetosm
提交
749a0cdf
qplanetosm
项目概览
colorEagleStdio
/
qplanetosm
通知
118
Star
10
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
qplanetosm
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
749a0cdf
编写于
6月 08, 2018
作者:
D
dev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
C++11 will automatically judge right-side reference when current function is returning.
std::move is removed from return keyword.
上级
de74f6b9
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
66 addition
and
66 deletion
+66
-66
qtviewer_planetosm/osmtiles/layer_interface.h
qtviewer_planetosm/osmtiles/layer_interface.h
+1
-1
qtviewer_planetosm/qtaxviewer_planetosm.cpp
qtviewer_planetosm/qtaxviewer_planetosm.cpp
+2
-2
qtviewer_planetosm/qtwidget_planetosm.cpp
qtviewer_planetosm/qtwidget_planetosm.cpp
+2
-2
qtvplugin_geomarker/geographicsscene.cpp
qtvplugin_geomarker/geographicsscene.cpp
+2
-2
qtvplugin_geomarker/geoitembase.cpp
qtvplugin_geomarker/geoitembase.cpp
+2
-2
qtvplugin_geomarker/qtvplugin_geomarker_func.cpp
qtvplugin_geomarker/qtvplugin_geomarker_func.cpp
+51
-51
qtvplugin_geomarker/qtvplugin_geomarker_xml.cpp
qtvplugin_geomarker/qtvplugin_geomarker_xml.cpp
+1
-1
qtvplugin_grid/qtvplugin_grid.cpp
qtvplugin_grid/qtvplugin_grid.cpp
+1
-1
test_container/testcontainer.cpp
test_container/testcontainer.cpp
+2
-2
test_container/testcontainer_linux.cpp
test_container/testcontainer_linux.cpp
+2
-2
未找到文件。
qtviewer_planetosm/osmtiles/layer_interface.h
浏览文件 @
749a0cdf
...
...
@@ -94,7 +94,7 @@ namespace QTVOSM
virtual
void
set_visible
(
bool
/*vb*/
)
{}
public:
//user-def direct function calls
virtual
QMap
<
QString
,
QVariant
>
call_func
(
const
QMap
<
QString
,
QVariant
>
&
/*paras*/
){
return
std
::
move
(
QMap
<
QString
,
QVariant
>
());}
virtual
QMap
<
QString
,
QVariant
>
call_func
(
const
QMap
<
QString
,
QVariant
>
&
/*paras*/
){
return
(
QMap
<
QString
,
QVariant
>
());}
};
...
...
qtviewer_planetosm/qtaxviewer_planetosm.cpp
浏览文件 @
749a0cdf
...
...
@@ -416,7 +416,7 @@ QString qtaxviewer_planetosm::map_to_string(const QMap<QString, QVariant> & m)
s
+=
p
.
value
().
toString
();
s
+=
";"
;
}
return
std
::
move
(
s
);
return
/*std::move*/
(
s
);
}
QMap
<
QString
,
QVariant
>
qtaxviewer_planetosm
::
string_to_map
(
const
QString
&
s
)
...
...
@@ -433,7 +433,7 @@ QMap<QString, QVariant> qtaxviewer_planetosm::string_to_map(const QString & s)
res
[
name
]
=
value
;
}
}
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
/**
...
...
qtviewer_planetosm/qtwidget_planetosm.cpp
浏览文件 @
749a0cdf
...
...
@@ -391,7 +391,7 @@ QString qtwidget_planetosm::map_to_string(const QMap<QString, QVariant> & m)
s
+=
p
.
value
().
toString
();
s
+=
";"
;
}
return
std
::
move
(
s
);
return
/*std::move*/
(
s
);
}
QMap
<
QString
,
QVariant
>
qtwidget_planetosm
::
string_to_map
(
const
QString
&
s
)
...
...
@@ -408,7 +408,7 @@ QMap<QString, QVariant> qtwidget_planetosm::string_to_map(const QString & s)
res
[
name
]
=
value
;
}
}
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
/**
* @brief osm_layer_call_function call layers' call_func method from
...
...
qtvplugin_geomarker/geographicsscene.cpp
浏览文件 @
749a0cdf
...
...
@@ -123,10 +123,10 @@ namespace QTVP_GEOMARKER{
QList
<
geoItemBase
*>
geoGraphicsScene
::
geo_items
()
{
return
std
::
move
(
m_map_items
.
values
());
return
/*std::move*/
(
m_map_items
.
values
());
}
QList
<
QString
>
geoGraphicsScene
::
geo_item_names
()
{
return
std
::
move
(
m_map_items
.
keys
());
return
/*std::move*/
(
m_map_items
.
keys
());
}
}
qtvplugin_geomarker/geoitembase.cpp
浏览文件 @
749a0cdf
...
...
@@ -96,7 +96,7 @@ namespace QTVP_GEOMARKER{
QStringList
geoItemBase
::
prop_names
()
{
return
std
::
move
(
m_props
.
keys
());
return
/*std::move*/
(
m_props
.
keys
());
}
int
geoItemBase
::
prop_counts
()
{
...
...
@@ -104,7 +104,7 @@ namespace QTVP_GEOMARKER{
}
QVariantList
geoItemBase
::
prop_values
()
{
return
std
::
move
(
m_props
.
values
());
return
/*std::move*/
(
m_props
.
values
());
}
const
QVariant
&
geoItemBase
::
prop_data
(
const
QString
&
k
)
...
...
qtvplugin_geomarker/qtvplugin_geomarker_func.cpp
浏览文件 @
749a0cdf
...
...
@@ -53,7 +53,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::call_func(const QMap<QString, QVar
}
else
res
[
"error"
]
=
"
\"
function
\"
keyword not specified, nothing to do."
;
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
/**
...
...
@@ -103,14 +103,14 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_update_point (const QMap<QStr
if
(
paras
.
contains
(
"name"
)
==
false
/*|| paras.contains("lat")==false || paras.contains("lon")==false*/
)
{
res
[
"error"
]
=
tr
(
"name must exist in paraments."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
QString
name
=
paras
[
"name"
].
toString
();
if
(
name
.
size
()
==
0
)
{
res
[
"error"
]
=
tr
(
"name could not be empty."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
QTVP_GEOMARKER
::
geoItemBase
*
base
=
m_pScene
->
geoitem_by_name
(
name
);
QPen
pen
(
m_default_style
.
pen
);
...
...
@@ -295,7 +295,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_update_point (const QMap<QStr
}
else
res
[
"error"
]
=
tr
(
"can not create graphical object, the pointer is zero."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
/**
* @brief func_update_icon is a internal function for plugin call_func "update_icon"
...
...
@@ -312,14 +312,14 @@ QMap<QString, QVariant> qtvplugin_geomarker:: func_update_icon (const QMap<QSt
if
(
paras
.
contains
(
"name"
)
==
false
/*|| paras.contains("lat")==false || paras.contains("lon")==false*/
)
{
res
[
"error"
]
=
tr
(
"name must exist in paraments."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
QString
name
=
paras
[
"name"
].
toString
();
if
(
name
.
size
()
==
0
)
{
res
[
"error"
]
=
tr
(
"name could not be empty."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
QTVP_GEOMARKER
::
geoItemBase
*
base
=
m_pScene
->
geoitem_by_name
(
name
);
QString
icon_name
=
m_default_style
.
icon_name
;
...
...
@@ -420,7 +420,7 @@ QMap<QString, QVariant> qtvplugin_geomarker:: func_update_icon (const QMap<QSt
}
else
res
[
"error"
]
=
tr
(
"can not create graphical object, the pointer is zero."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
/**
...
...
@@ -438,14 +438,14 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_update_line (const QMap<QStr
if
(
paras
.
contains
(
"name"
)
==
false
)
{
res
[
"error"
]
=
tr
(
"name must exist in paraments."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
QString
name
=
paras
[
"name"
].
toString
();
if
(
name
.
size
()
==
0
)
{
res
[
"error"
]
=
tr
(
"name could not be empty."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
QTVP_GEOMARKER
::
geoItemBase
*
base
=
m_pScene
->
geoitem_by_name
(
name
);
QPen
pen
(
m_default_style
.
pen
);
...
...
@@ -555,7 +555,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_update_line (const QMap<QStr
}
else
res
[
"error"
]
=
tr
(
"can not create graphical object, the pointer is zero."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
...
...
@@ -574,7 +574,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_update_polygon (const QMap<QS
if
(
paras
.
contains
(
"name"
)
==
false
)
{
res
[
"error"
]
=
tr
(
"name must exist in paraments."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
...
...
@@ -582,7 +582,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_update_polygon (const QMap<QS
if
(
name
.
size
()
==
0
)
{
res
[
"error"
]
=
tr
(
"name could not be empty."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
int
type
=
m_default_style
.
multiline
==
0
?
4
:
6
;
//polygon
...
...
@@ -590,7 +590,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_update_polygon (const QMap<QS
if
(
name
.
size
()
==
0
)
{
res
[
"error"
]
=
tr
(
"name could not be empty."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
...
...
@@ -760,7 +760,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_update_polygon (const QMap<QS
}
else
res
[
"error"
]
=
tr
(
"can not create graphical object, the pointer is zero."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
...
...
@@ -780,7 +780,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_update_props(const QMap<QStrin
if
(
name
.
size
()
==
0
)
{
res
[
"error"
]
=
tr
(
"name does not exist in paraments."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
/** the user-defined properties are defined as key-value pairs.
* [prop_name]=[prop_value]
...
...
@@ -805,7 +805,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_update_props(const QMap<QStrin
else
res
[
"error"
]
=
tr
(
"name does not exist in scene."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
/**
...
...
@@ -824,7 +824,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_exists (const QMap<QString,
if
(
name
.
size
()
==
0
)
{
res
[
"error"
]
=
tr
(
"name does not exist in paraments."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
QTVP_GEOMARKER
::
geoItemBase
*
base
=
m_pScene
->
geoitem_by_name
(
name
);
if
(
base
)
...
...
@@ -834,7 +834,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_exists (const QMap<QString,
else
res
[
"return"
]
=
0
;
//! return 1 means the mark name is exist, 0 mean not.
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
/**
...
...
@@ -893,7 +893,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_delete_marks (const QMap<QSt
scheduleUpdateMap
();
}
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
/**
* @brief func_delete_props is a internal function for plugin call_func "delete_props"
...
...
@@ -910,13 +910,13 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_delete_props (const QMap<QSt
if
(
paras
.
contains
(
"name"
)
==
false
)
{
res
[
"error"
]
=
tr
(
"name must exist in paraments."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
QString
name
=
paras
[
"name"
].
toString
();
if
(
name
.
size
()
==
0
)
{
res
[
"error"
]
=
tr
(
"name could not be empty."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
/*!
* the property names to be deleted will be stored like this:
...
...
@@ -951,7 +951,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_delete_props (const QMap<QSt
//scheduleRefreshMarks();
scheduleUpdateMap
();
}
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
/**
...
...
@@ -974,7 +974,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_mark_names (const QMap<QStr
}
//! the mark names will be stored in key-value pairs, with
//! name0=??;name1=??;name2=??...namen-1=??
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
/**
* @brief func_mark is a internal function for plugin call_func "mark"
...
...
@@ -991,13 +991,13 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_mark (const QMap<QString,
if
(
paras
.
contains
(
"name"
)
==
false
)
{
res
[
"error"
]
=
tr
(
"name must exist in paraments."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
QString
name
=
paras
[
"name"
].
toString
();
if
(
name
.
size
()
==
0
)
{
res
[
"error"
]
=
tr
(
"name could not be empty."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
QTVP_GEOMARKER
::
geoItemBase
*
item
=
m_pScene
->
geoitem_by_name
(
name
);
if
(
item
)
...
...
@@ -1139,7 +1139,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_mark (const QMap<QString,
}
else
res
[
"error"
]
=
tr
(
"the mark name."
)
+
name
+
tr
(
" does not exist in current scene."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
/**
* @brief func_props is a internal function for plugin call_func "props"
...
...
@@ -1156,13 +1156,13 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_props (const QMap<QString,
if
(
paras
.
contains
(
"name"
)
==
false
)
{
res
[
"error"
]
=
tr
(
"name must exist in paraments."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
QString
name
=
paras
[
"name"
].
toString
();
if
(
name
.
size
()
==
0
)
{
res
[
"error"
]
=
tr
(
"name could not be empty."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
QTVP_GEOMARKER
::
geoItemBase
*
item
=
m_pScene
->
geoitem_by_name
(
name
);
if
(
item
)
...
...
@@ -1179,7 +1179,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_props (const QMap<QString,
else
res
[
"error"
]
=
tr
(
"the mark name."
)
+
name
+
tr
(
" does not exist in current scene."
);
//! return value is the user-defined key-pairs.
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
/**
* @brief func_save_xml is a internal function for plugin call_func "save_xml"
...
...
@@ -1196,13 +1196,13 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_save_xml (const QMap<QStrin
if
(
paras
.
contains
(
"xml"
)
==
false
)
{
res
[
"error"
]
=
tr
(
"xml must exist in paraments."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
QString
name
=
paras
[
"xml"
].
toString
();
if
(
name
.
size
()
==
0
)
{
res
[
"error"
]
=
tr
(
"xml could not be empty."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
bool
ok
=
this
->
xml_save
(
name
);
...
...
@@ -1224,13 +1224,13 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_load_xml (const QMap<QStrin
if
(
paras
.
contains
(
"xml"
)
==
false
)
{
res
[
"error"
]
=
tr
(
"xml must exist in paraments."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
QString
name
=
paras
[
"xml"
].
toString
();
if
(
name
.
size
()
==
0
)
{
res
[
"error"
]
=
tr
(
"xml could not be empty."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
bool
ok
=
this
->
xml_load
(
name
);
...
...
@@ -1257,19 +1257,19 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_add_resource (const QMap<QSt
if
(
paras
.
contains
(
"name"
)
==
false
||
paras
.
contains
(
"filename"
)
==
false
||
paras
.
contains
(
"centerx"
)
==
false
||
paras
.
contains
(
"centery"
)
==
false
)
{
res
[
"error"
]
=
tr
(
"name, filename, centerx,centery must exist in paraments."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
QString
name
=
paras
[
"name"
].
toString
();
if
(
name
.
size
()
==
0
)
{
res
[
"error"
]
=
tr
(
"name could not be empty."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
QString
filename
=
paras
[
"filename"
].
toString
();
if
(
filename
.
size
()
==
0
)
{
res
[
"error"
]
=
tr
(
"filename could not be empty."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
int
cenx
=
paras
[
"centerx"
].
toInt
();
int
ceny
=
paras
[
"centery"
].
toInt
();
...
...
@@ -1286,7 +1286,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_add_resource (const QMap<QSt
refreshIconModel
();
}
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
/**
...
...
@@ -1304,13 +1304,13 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_save_resources (const QMap<Q
if
(
paras
.
contains
(
"xml"
)
==
false
)
{
res
[
"error"
]
=
tr
(
"xml must exist in paraments."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
QString
name
=
paras
[
"xml"
].
toString
();
if
(
name
.
size
()
==
0
)
{
res
[
"error"
]
=
tr
(
"xml could not be empty."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
bool
ok
=
this
->
xml_icon_save
(
name
);
...
...
@@ -1332,13 +1332,13 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_load_resources (const QMap<Q
if
(
paras
.
contains
(
"xml"
)
==
false
)
{
res
[
"error"
]
=
tr
(
"xml must exist in paraments."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
QString
name
=
paras
[
"xml"
].
toString
();
if
(
name
.
size
()
==
0
)
{
res
[
"error"
]
=
tr
(
"xml could not be empty."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
bool
ok
=
this
->
xml_icon_load
(
name
);
...
...
@@ -1397,7 +1397,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_props_vis (const QMap<QStri
}
//! the return value is "name=v;" serials, v=0 means props are collapsed, otherwise means props is visible.
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
/**
* @brief func_show_props is a internal function for plugin call_func "show_props"
...
...
@@ -1445,7 +1445,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_show_props (const QMap<QStr
scheduleUpdateMap
();
}
//! the return value is "name=v;" serials, v=0 means props are collapsed, otherwise means props is visible.
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
//tools methods
/**
...
...
@@ -1465,7 +1465,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_set_mod (const QMap<QString
if
(
paras
.
contains
(
"mod"
)
==
false
)
{
res
[
"error"
]
=
tr
(
"mod must exist in paraments."
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
int
mod
=
paras
[
"mod"
].
toInt
();
if
(
mod
==
0
)
...
...
@@ -1496,10 +1496,10 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_set_mod (const QMap<QString
else
{
res
[
"error"
]
=
tr
(
"mod is not valid in paraments. 0=display, 1=rect selection"
);
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
//selection methods
...
...
@@ -1515,7 +1515,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_selection_clear(const QMap<Q
{
QMap
<
QString
,
QVariant
>
res
;
this
->
on_pushButton_QTV_sel_clear_clicked
();
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
/**
* @brief func_set_mod is a internal function for plugin call_func "selection_delete"
...
...
@@ -1529,7 +1529,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_selection_delete(const QMap<
{
QMap
<
QString
,
QVariant
>
res
;
this
->
on_pushButton_QTV_sel_delselected_clicked
();
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
/**
* @brief func_set_mod is a internal function for plugin call_func "selected_items"
...
...
@@ -1551,7 +1551,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_selected_items (const QMap<Q
}
//! the mark names will be stored in key-value pairs, with
//! name0=??;name1=??;name2=??...namen-1=??
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
/**
* @brief func_set_default_style is a internal function for plugin call_func "set_default_style"
...
...
@@ -1712,7 +1712,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_set_default_style(const QMap<Q
res
[
"warning"
]
=
errMsg
;
//style save
style_save
();
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
/**
* @brief func_default_style is a internal function for plugin call_func "default_style"
...
...
@@ -1760,6 +1760,6 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_default_style(const QMap<QStri
res
[
"rotate"
]
=
ui
->
lineEdit_QTV_icon_rotate
->
text
();
//!smooth is the transform mode that this icon will use. 0 mean not smooth, but faster. 1 mean smooth.
res
[
"smooth"
]
=
ui
->
checkBox_QTV_icon_smooth
->
isChecked
()
?-
1
:
0
;
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
qtvplugin_geomarker/qtvplugin_geomarker_xml.cpp
浏览文件 @
749a0cdf
...
...
@@ -212,7 +212,7 @@ QMap<QString,QString> qtvplugin_geomarker::xml_attribs_map(const QXmlStreamAttri
QMap
<
QString
,
QString
>
attr
;
foreach
(
QXmlStreamAttribute
a
,
ats
)
attr
[
a
.
name
().
toString
()]
=
a
.
value
().
toString
();
return
std
::
move
(
attr
);
return
/*std::move*/
(
attr
);
}
bool
qtvplugin_geomarker
::
xml_load
(
QString
xmlfile
)
{
...
...
qtvplugin_grid/qtvplugin_grid.cpp
浏览文件 @
749a0cdf
...
...
@@ -734,7 +734,7 @@ QMap<QString, QVariant> qtvplugin_grid::call_func(const QMap<QString, QVariant>
}
else
res
[
"error"
]
=
"
\"
function
\"
keyword not specified, nothing to do."
;
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
void
qtvplugin_grid
::
on_pushButton_QTV_add_mark_clicked
()
{
...
...
test_container/testcontainer.cpp
浏览文件 @
749a0cdf
...
...
@@ -247,7 +247,7 @@ QString testcontainer::map_to_string(const QMap<QString, QVariant> & m)
s
+=
p
.
value
().
toString
();
s
+=
";"
;
}
return
std
::
move
(
s
);
return
/*std::move*/
(
s
);
}
QMap
<
QString
,
QVariant
>
testcontainer
::
string_to_map
(
const
QString
&
s
)
...
...
@@ -264,7 +264,7 @@ QMap<QString, QVariant> testcontainer::string_to_map(const QString & s)
res
[
name
]
=
value
;
}
}
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
void
testcontainer
::
on_pushButton_QTV_test_grid_enable_clicked
()
{
...
...
test_container/testcontainer_linux.cpp
浏览文件 @
749a0cdf
...
...
@@ -195,7 +195,7 @@ QString testcontainer::map_to_string(const QMap<QString, QVariant> & m)
s
+=
p
.
value
().
toString
();
s
+=
";"
;
}
return
std
::
move
(
s
);
return
/*std::move*/
(
s
);
}
QMap
<
QString
,
QVariant
>
testcontainer
::
string_to_map
(
const
QString
&
s
)
...
...
@@ -212,7 +212,7 @@ QMap<QString, QVariant> testcontainer::string_to_map(const QString & s)
res
[
name
]
=
value
;
}
}
return
std
::
move
(
res
);
return
/*std::move*/
(
res
);
}
void
testcontainer
::
on_pushButton_QTV_test_grid_enable_clicked
()
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录