You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2012/04/08 20:18:45 UTC

svn commit: r1311065 - in /thrift/trunk/lib/cpp/src/qt: TQIODeviceTransport.cpp TQIODeviceTransport.h TQTcpServer.cpp TQTcpServer.h

Author: roger
Date: Sun Apr  8 18:18:44 2012
New Revision: 1311065

URL: http://svn.apache.org/viewvc?rev=1311065&view=rev
Log:
add license headers, fix compiler warnings

Modified:
    thrift/trunk/lib/cpp/src/qt/TQIODeviceTransport.cpp
    thrift/trunk/lib/cpp/src/qt/TQIODeviceTransport.h
    thrift/trunk/lib/cpp/src/qt/TQTcpServer.cpp
    thrift/trunk/lib/cpp/src/qt/TQTcpServer.h

Modified: thrift/trunk/lib/cpp/src/qt/TQIODeviceTransport.cpp
URL: http://svn.apache.org/viewvc/thrift/trunk/lib/cpp/src/qt/TQIODeviceTransport.cpp?rev=1311065&r1=1311064&r2=1311065&view=diff
==============================================================================
--- thrift/trunk/lib/cpp/src/qt/TQIODeviceTransport.cpp (original)
+++ thrift/trunk/lib/cpp/src/qt/TQIODeviceTransport.cpp Sun Apr  8 18:18:44 2012
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 #include "TQIODeviceTransport.h"
 
 #include <QAbstractSocket>
@@ -145,11 +164,14 @@ void TQIODeviceTransport::flush()
 
 uint8_t* TQIODeviceTransport::borrow(uint8_t* buf, uint32_t* len)
 {
+  (void) buf;
+  (void) len;
   return NULL;
 }
 
 void TQIODeviceTransport::consume(uint32_t len)
 {
+  (void) len;
   throw TTransportException(TTransportException::UNKNOWN);
 }
 

Modified: thrift/trunk/lib/cpp/src/qt/TQIODeviceTransport.h
URL: http://svn.apache.org/viewvc/thrift/trunk/lib/cpp/src/qt/TQIODeviceTransport.h?rev=1311065&r1=1311064&r2=1311065&view=diff
==============================================================================
--- thrift/trunk/lib/cpp/src/qt/TQIODeviceTransport.h (original)
+++ thrift/trunk/lib/cpp/src/qt/TQIODeviceTransport.h Sun Apr  8 18:18:44 2012
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 #ifndef _THRIFT_ASYNC_TQIODEVICE_TRANSPORT_H_
 #define _THRIFT_ASYNC_TQIODEVICE_TRANSPORT_H_ 1
 

Modified: thrift/trunk/lib/cpp/src/qt/TQTcpServer.cpp
URL: http://svn.apache.org/viewvc/thrift/trunk/lib/cpp/src/qt/TQTcpServer.cpp?rev=1311065&r1=1311064&r2=1311065&view=diff
==============================================================================
--- thrift/trunk/lib/cpp/src/qt/TQTcpServer.cpp (original)
+++ thrift/trunk/lib/cpp/src/qt/TQTcpServer.cpp Sun Apr  8 18:18:44 2012
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 
 #include "TQTcpServer.h"
 #include "TQIODeviceTransport.h"

Modified: thrift/trunk/lib/cpp/src/qt/TQTcpServer.h
URL: http://svn.apache.org/viewvc/thrift/trunk/lib/cpp/src/qt/TQTcpServer.h?rev=1311065&r1=1311064&r2=1311065&view=diff
==============================================================================
--- thrift/trunk/lib/cpp/src/qt/TQTcpServer.h (original)
+++ thrift/trunk/lib/cpp/src/qt/TQTcpServer.h Sun Apr  8 18:18:44 2012
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 #ifndef _THRIFT_TASYNC_QTCP_SERVER_H_
 #define _THRIFT_TASYNC_QTCP_SERVER_H_