• 3828阅读
  • 1回复

问下QT_UNUSED用法?【已解决】 [复制链接]

上一主题 下一主题
离线fox1987
 
只看楼主 倒序阅读 楼主  发表于: 2010-04-02
看代码的时候发现有用这个字段的
查询了下QtAssist这么说的:
Q_UNUSED ( name )

Indicates to the compiler that the parameter with the specified name is not used in the body of a function.
This can be used to suppress compiler warnings while allowing functions to be defined with meaningful parameter names in their signatures.

但是还是不太明白,这个字段标示变量后会触发什么事件 吗?

有知道的麻烦给解释下
不胜感激
[ 此帖被午小夜在2010-04-02 18:23重新编辑 ]
离线yangfanxing
只看该作者 1楼 发表于: 2010-04-02
没用到,不会警告,免除相关计算。
没了。
PHPWind好恶心。。。不想看这种界面。。。
快速回复
限100 字节
 
上一个 下一个